summaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2015-05-21 12:33:05 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2015-06-03 09:53:56 +0200
commite4daf808818f040801e2416d96e77d7ac9f64acc (patch)
tree26216e7a49d063a6cdd668701c9170aa6ea334f0 /arch/x86
parent28a91334704f880e6aaeaa2f6b3e6e29a28d500b (diff)
downloadbarebox-e4daf808818f040801e2416d96e77d7ac9f64acc.tar.gz
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/x86')
-rw-r--r--arch/x86/include/asm/bitsperlong.h1
-rw-r--r--arch/x86/include/asm/types.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/x86/include/asm/bitsperlong.h b/arch/x86/include/asm/bitsperlong.h
new file mode 100644
index 0000000..6dc0bb0
--- /dev/null
+++ b/arch/x86/include/asm/bitsperlong.h
@@ -0,0 +1 @@
+#include <asm-generic/bitsperlong.h>
diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index b3fd1f6..d60612f 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -41,7 +41,7 @@ typedef unsigned int u32;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
+#include <asm-generic/bitsperlong.h>
#endif /* __ASSEMBLY__ */