summaryrefslogtreecommitdiffstats
path: root/arch/sandbox/include/asm/types.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-06-25 11:31:33 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2012-06-25 14:06:40 +0200
commit53e9fae78c2fb1824c4d9cdbf6bd418e3325d2a9 (patch)
tree33f72623cd0317c39957f9820d9de1b28069f18d /arch/sandbox/include/asm/types.h
parentecf38bff9bdbfbd6d42ed7d08cbb86b7b2558241 (diff)
downloadbarebox-53e9fae78c2fb1824c4d9cdbf6bd418e3325d2a9.tar.gz
barebox-53e9fae78c2fb1824c4d9cdbf6bd418e3325d2a9.tar.xz
sandbox: fix 64bit build
On x86_64 we need CONFIG_PHYS_ADDR_T_64BIT to make the resource sizes 64bit. The kernel has this as a Kconfig variable, but on barebox sandbox will build with whatever compiler we find, so we can't put it into Kconfig. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox/include/asm/types.h')
-rw-r--r--arch/sandbox/include/asm/types.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/sandbox/include/asm/types.h b/arch/sandbox/include/asm/types.h
index a9872194d9..d471d257be 100644
--- a/arch/sandbox/include/asm/types.h
+++ b/arch/sandbox/include/asm/types.h
@@ -7,6 +7,13 @@
* 64 bit
*/
#define INTERNAL_SIZE_T unsigned long
+
+/*
+ * This is a Kconfig variable in the Kernel, but we want to detect
+ * this during compile time, so we set it here.
+ */
+#define CONFIG_PHYS_ADDR_T_64BIT
+
#endif
typedef unsigned short umode_t;