]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
xtensa: switch to packed struct unaligned access implementation
authorHarvey Harrison <harvey.harrison@gmail.com>
Mon, 10 Nov 2008 02:51:09 +0000 (18:51 -0800)
committerChris Zankel <chris@zankel.net>
Tue, 11 Nov 2008 14:14:10 +0000 (06:14 -0800)
Rely on byteorder.h checking for endianness.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
arch/xtensa/include/asm/unaligned.h

index 8f3424fc5d1823df176ebf62662dec2d03b07d5d..8e7ed046bfedbc638adf27432f3edb539f0afe57 100644 (file)
 #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 */