diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2020-06-02 10:53:50 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2020-06-03 10:03:33 +0200 |
commit | 5e4dfd408a55d38e59a6a3fd3cf43192a24ded24 (patch) | |
tree | 3b7ca0c8e7912ec0fc03167e38566a9553cc7774 /arch/sandbox | |
parent | 33bfb72092aa4348de4901a7470cde146c1d26a0 (diff) | |
download | barebox-5e4dfd408a55d38e59a6a3fd3cf43192a24ded24.tar.gz barebox-5e4dfd408a55d38e59a6a3fd3cf43192a24ded24.tar.xz |
sandbox: asm: bitsperlong.h: detect bitness according to 64BIT symbol
Now that we have an accurate CONFIG_64BIT describing sandbox bitness,
we don't need to assume everything except __x86_64__ as 32-bit.
This assumes that sizeof(long) == sizeof(void *), which is assumed
anyway throughout the code base.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/sandbox')
-rw-r--r-- | arch/sandbox/include/asm/bitsperlong.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/arch/sandbox/include/asm/bitsperlong.h b/arch/sandbox/include/asm/bitsperlong.h index 00c1fc2625..6dc0bb0c13 100644 --- a/arch/sandbox/include/asm/bitsperlong.h +++ b/arch/sandbox/include/asm/bitsperlong.h @@ -1,10 +1 @@ -#ifndef __ASM_BITSPERLONG_H -#define __ASM_BITSPERLONG_H - -#ifdef __x86_64__ -#define BITS_PER_LONG 64 -#else -#define BITS_PER_LONG 32 -#endif - -#endif /* __ASM_BITSPERLONG_H */ +#include <asm-generic/bitsperlong.h> |