diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-11-09 18:51:09 -0800 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2008-11-11 06:14:10 -0800 |
commit | 91a15026eb89a687dfcac860a969cfd872f3c94f (patch) | |
tree | 38f1a2d6ed6fc0da13cddd7a4fede96814799665 /arch/xtensa | |
parent | 8fa5723aa7e053d498336b48448b292fc2e0458b (diff) | |
download | linux-stable-91a15026eb89a687dfcac860a969cfd872f3c94f.tar.gz linux-stable-91a15026eb89a687dfcac860a969cfd872f3c94f.tar.bz2 linux-stable-91a15026eb89a687dfcac860a969cfd872f3c94f.zip |
xtensa: switch to packed struct unaligned access implementation
Rely on byteorder.h checking for endianness.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/include/asm/unaligned.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/xtensa/include/asm/unaligned.h b/arch/xtensa/include/asm/unaligned.h index 8f3424fc5d18..8e7ed046bfed 100644 --- a/arch/xtensa/include/asm/unaligned.h +++ b/arch/xtensa/include/asm/unaligned.h @@ -10,20 +10,20 @@ #ifndef _ASM_XTENSA_UNALIGNED_H #define _ASM_XTENSA_UNALIGNED_H -#ifdef __XTENSA_EL__ -# include <linux/unaligned/le_memmove.h> +#include <asm/byteorder.h> + +#ifdef __LITTLE_ENDIAN +# include <linux/unaligned/le_struct.h> # include <linux/unaligned/be_byteshift.h> # include <linux/unaligned/generic.h> # define get_unaligned __get_unaligned_le # define put_unaligned __put_unaligned_le -#elif defined(__XTENSA_EB__) -# include <linux/unaligned/be_memmove.h> +#else +# include <linux/unaligned/be_struct.h> # include <linux/unaligned/le_byteshift.h> # include <linux/unaligned/generic.h> # define get_unaligned __get_unaligned_be # define put_unaligned __put_unaligned_be -#else -# error processor byte order undefined! #endif #endif /* _ASM_XTENSA_UNALIGNED_H */ |