diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2015-05-21 12:33:05 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2015-06-03 09:53:56 +0200 |
commit | e4daf808818f040801e2416d96e77d7ac9f64acc (patch) | |
tree | 26216e7a49d063a6cdd668701c9170aa6ea334f0 /arch/efi/include/asm/bitsperlong.h | |
parent | 28a91334704f880e6aaeaa2f6b3e6e29a28d500b (diff) | |
download | barebox-e4daf808818f040801e2416d96e77d7ac9f64acc.tar.gz barebox-e4daf808818f040801e2416d96e77d7ac9f64acc.tar.xz |
introduce bitsperlong.h for remaining architectures
This introduces the bitsperlong.h file for the remaining architectures.
It's purpose is to define BITS_PER_LONG which in the next step can be used
by a generic posix_types.h file.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/efi/include/asm/bitsperlong.h')
-rw-r--r-- | arch/efi/include/asm/bitsperlong.h | 10 |
1 files changed, 10 insertions, 0 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 */ |