[PATCH/next] x86: Provide 'unaligned' macros for x86 arch as well
Juergen Beisert
jbe at pengutronix.de
Wed Nov 16 04:04:13 EST 2011
These macros are used in the generic partition detection code.
So, x86 would fails without it.
Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h
index 17c5fd7..d520869 100644
--- a/arch/x86/include/asm/types.h
+++ b/arch/x86/include/asm/types.h
@@ -39,6 +39,8 @@ typedef unsigned short u16;
typedef unsigned int u32;
+typedef unsigned long long u64;
+
#endif /* __ASSEMBLY__ */
#endif /* __ASM_X86_TYPES_H */
diff --git a/arch/x86/include/asm/unaligned.h b/arch/x86/include/asm/unaligned.h
new file mode 100644
index 0000000..34f2367
--- /dev/null
+++ b/arch/x86/include/asm/unaligned.h
@@ -0,0 +1,11 @@
+#ifndef _ASM_X86_UNALIGNED_H
+#define _ASM_X86_UNALIGNED_H
+
+#include <linux/unaligned/le_byteshift.h>
+#include <linux/unaligned/be_byteshift.h>
+#include <linux/unaligned/generic.h>
+
+#define get_unaligned __get_unaligned_le
+#define put_unaligned __put_unaligned_le
+
+#endif /* _ASM_X86_UNALIGNED_H */
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
More information about the barebox
mailing list