]> git.baikalelectronics.ru Git - uboot.git/commitdiff
sandbox: Correctly define BITS_PER_LONG
authorMichal Suchanek <msuchanek@suse.de>
Sat, 22 Oct 2022 21:22:01 +0000 (23:22 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 1 Mar 2023 18:22:27 +0000 (11:22 -0700)
SANDBOX_BITS_PER_LONG is the number of bits in long on the sandbox
platform.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
arch/sandbox/include/asm/types.h

index c1a5d2af8285b879fdfd30f831d42f333c5fe913..5f4b649ee38aa5dcfc0be907ac8d9fca03f48d2e 100644 (file)
@@ -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;