summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2022-10-23 00:22:01 +0300
committerSimon Glass <sjg@chromium.org>2023-03-01 21:22:27 +0300
commit3cbaa4e1efa70b463a0057920e145f5e52784b9a (patch)
treed651d8c00a26ceb7c706e8e09bf480faab9fb3f7 /arch
parent9fb3d7a7c551a543f0df48dd0ccbacd189f1cd33 (diff)
downloadu-boot-3cbaa4e1efa70b463a0057920e145f5e52784b9a.tar.xz
sandbox: Correctly define BITS_PER_LONG
SANDBOX_BITS_PER_LONG is the number of bits in long on the sandbox platform. Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Diffstat (limited to 'arch')
-rw-r--r--arch/sandbox/include/asm/types.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/sandbox/include/asm/types.h b/arch/sandbox/include/asm/types.h
index c1a5d2af82..5f4b649ee3 100644
--- a/arch/sandbox/include/asm/types.h
+++ b/arch/sandbox/include/asm/types.h
@@ -18,11 +18,7 @@ typedef unsigned short umode_t;
/*
* Number of bits in a C 'long' on this architecture.
*/
-#ifdef CONFIG_PHYS_64BIT
-#define BITS_PER_LONG 64
-#else /* CONFIG_PHYS_64BIT */
-#define BITS_PER_LONG 32
-#endif /* CONFIG_PHYS_64BIT */
+#define BITS_PER_LONG CONFIG_SANDBOX_BITS_PER_LONG
#ifdef CONFIG_PHYS_64BIT
typedef unsigned long long dma_addr_t;