diff --git a/common/memsize.c b/common/memsize.c index 6c275c9..505e43f 100644 --- a/common/memsize.c +++ b/common/memsize.c @@ -22,7 +22,7 @@ */ #include -#ifdef __PPC__ +#if defined (__PPC__) && !defined (__SANDBOX__) /* * At least on G2 PowerPC cores, sequential accesses to non-existent * memory must be synchronized. diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 25bb18f..c96d762 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -1,5 +1,6 @@ - #ifndef __CONFIG_H #define __CONFIG_H +#define __SANDBOX__ + #endif /* __CONFIG_H */