path: root/common/memsize.c
diff options
authorMarc Kleine-Budde <>2007-11-14 19:52:12 +0100
committerMarc Kleine-Budde <>2007-11-29 10:22:46 +0100
commitfb56fffbcbea96135fe3aa889b338aa7dd1c4dcb (patch)
treea772596f7d4be6882f0b756c4639a5a385db4693 /common/memsize.c
parentb7e74539f84cc4be50286fd8bc67aeea0edd18c5 (diff)
[sandbox] add propper sandbox detection
This patch adds a __SANDBOX__ define to identify compiling for the sandbox. When building for sandbox, don't use sync() workaround. Fixes this error for sandbox on PPC: CC common/memsize.o common/memsize.c:30:38: error: asm/io.h: No such file or directory common/memsize.c: In function 'get_ram_size': common/memsize.c:51: warning: implicit declaration of function 'sync' Signed-off-by: Marc Kleine-Budde <>
Diffstat (limited to 'common/memsize.c')
1 files changed, 1 insertions, 1 deletions
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 <config.h>
-#ifdef __PPC__
+#if defined (__PPC__) && !defined (__SANDBOX__)
* At least on G2 PowerPC cores, sequential accesses to non-existent
* memory must be synchronized.