diff options
Diffstat (limited to 'arch/efi')
-rw-r--r-- | arch/efi/include/asm/bitsperlong.h | 10 | ||||
-rw-r--r-- | arch/efi/include/asm/types.h | 6 |
2 files changed, 11 insertions, 5 deletions
diff --git a/arch/efi/include/asm/bitsperlong.h b/arch/efi/include/asm/bitsperlong.h new file mode 100644 index 0000000000..00c1fc2625 --- /dev/null +++ b/arch/efi/include/asm/bitsperlong.h @@ -0,0 +1,10 @@ +#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 */ diff --git a/arch/efi/include/asm/types.h b/arch/efi/include/asm/types.h index 05122ea04e..3caac398d8 100644 --- a/arch/efi/include/asm/types.h +++ b/arch/efi/include/asm/types.h @@ -56,11 +56,7 @@ typedef unsigned int u32; typedef signed long long s64; typedef unsigned long long u64; -#ifdef __x86_64__ -#define BITS_PER_LONG 64 -#else -#define BITS_PER_LONG 32 -#endif +#include <asm/bitsperlong.h> #endif /* __KERNEL__ */ |