diff options
| author | Simon Kagstrom <simon.kagstrom@netinsight.net> | 2009-07-07 13:58:51 +0200 | 
|---|---|---|
| committer | Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> | 2009-07-19 11:56:34 +0200 | 
| commit | 8bf29b59fce8cc381114929082202d800e313ad5 (patch) | |
| tree | 01fdb1ef67679501dd8842429db272d5f223248c | |
| parent | 4abc5bffea244589fa1097e4c899a63efc609c8e (diff) | |
| download | olio-uboot-2014.01-8bf29b59fce8cc381114929082202d800e313ad5.tar.xz olio-uboot-2014.01-8bf29b59fce8cc381114929082202d800e313ad5.zip | |
Add unaligned.h for arm
This patch adds unaligned.h for ARM (needed to build with LZO
compression). The file is taken from the linux kernel, but includes
u-boot headers instead.
Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Acked-by: Stefan Roese <sr@denx.de>
| -rw-r--r-- | include/asm-arm/unaligned.h | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/include/asm-arm/unaligned.h b/include/asm-arm/unaligned.h new file mode 100644 index 000000000..d644df752 --- /dev/null +++ b/include/asm-arm/unaligned.h @@ -0,0 +1,18 @@ +#ifndef _ASM_ARM_UNALIGNED_H +#define _ASM_ARM_UNALIGNED_H + +#include <linux/unaligned/access_ok.h> +#include <linux/unaligned/generic.h> + +/* + * Select endianness + */ +#ifndef __ARMEB__ +#define get_unaligned	__get_unaligned_le +#define put_unaligned	__put_unaligned_le +#else +#define get_unaligned	__get_unaligned_be +#define put_unaligned	__put_unaligned_be +#endif + +#endif /* _ASM_ARM_UNALIGNED_H */ |