diff options
author | Lucas De Marchi <lucas.demarchi@profusion.mobi> | 2011-11-09 19:39:56 -0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-11-11 12:28:35 +0100 |
commit | 8d6d5d43dde84b0352195a3ce6d0b9101e651073 (patch) | |
tree | 6863e8889f77a6392ecdd78e839fef0070d6a01b /arch/x86 | |
parent | bf25fb065aeefbd04ca828fe38630c3e3a413dd8 (diff) | |
download | barebox-8d6d5d43dde84b0352195a3ce6d0b9101e651073.tar.gz barebox-8d6d5d43dde84b0352195a3ce6d0b9101e651073.tar.xz |
x86: fix build error because of missing header
Signed-off-by: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/include/asm/types.h | 2 | ||||
-rw-r--r-- | arch/x86/include/asm/unaligned.h | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/arch/x86/include/asm/types.h b/arch/x86/include/asm/types.h index 17c5fd7b9c..d5208699a9 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 0000000000..a7bd416b47 --- /dev/null +++ b/arch/x86/include/asm/unaligned.h @@ -0,0 +1,14 @@ +#ifndef _ASM_X86_UNALIGNED_H +#define _ASM_X86_UNALIGNED_H + +/* + * The x86 can do unaligned accesses itself. + */ + +#include <linux/unaligned/access_ok.h> +#include <linux/unaligned/generic.h> + +#define get_unaligned __get_unaligned_le +#define put_unaligned __put_unaligned_le + +#endif /* _ASM_X86_UNALIGNED_H */ |