aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sandbox
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2017-04-12 16:41:00 -0400
committerTom Rini <trini@konsulko.com>2017-04-13 09:41:09 -0400
commit6823e6fe66ad9e9043ca8a0da2d79f1d11af1f34 (patch)
tree84d7c3aaea8d38c386547501c8108e9bfd685f45 /arch/sandbox
parentcdce1f762029619e80061833b153cdbf3d0a0860 (diff)
downloadu-boot-midas-6823e6fe66ad9e9043ca8a0da2d79f1d11af1f34.tar.gz
u-boot-midas-6823e6fe66ad9e9043ca8a0da2d79f1d11af1f34.tar.bz2
u-boot-midas-6823e6fe66ad9e9043ca8a0da2d79f1d11af1f34.zip
sandbox: Change CONFIG_SANDBOX_BITS_PER_LONG to hard-coded
Instead of having CONFIG_SANDBOX_BITS_PER_LONG in sandbox.h set to 64 with a comment to change to 32 on a 32bit host, simply set this to 64 in asm/types.h and have the comment be there. Cc: Simon Glass <sjg@chromium.org> Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/sandbox')
-rw-r--r--arch/sandbox/include/asm/types.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/sandbox/include/asm/types.h b/arch/sandbox/include/asm/types.h
index 42c09e2fff..623cdafefa 100644
--- a/arch/sandbox/include/asm/types.h
+++ b/arch/sandbox/include/asm/types.h
@@ -50,7 +50,11 @@ typedef __INT64_TYPE__ s64;
typedef __UINT64_TYPE__ u64;
#endif
-#define BITS_PER_LONG CONFIG_SANDBOX_BITS_PER_LONG
+/*
+ * Number of bits in a C 'long' on this architecture. Set this to 32 when
+ * building on a 32-bit machine.
+ */
+#define BITS_PER_LONG 32
typedef unsigned long dma_addr_t;
typedef u32 phys_addr_t;