summaryrefslogtreecommitdiffstats
path: root/arch/microblaze/include/asm/unaligned.h
diff options
context:
space:
mode:
authorMichal Simek2011-02-18 14:29:20 +0100
committerMichal Simek2011-03-09 08:09:53 +0100
commit601149775158ea825326734c2db5d90190249bd7 (patch)
treee14cb4399d844c1f2190ade041eec2ca90d06107 /arch/microblaze/include/asm/unaligned.h
parentmicroblaze: Do not use r0_ram space for hw exception debugging (diff)
downloadkernel-qcow2-linux-601149775158ea825326734c2db5d90190249bd7.tar.gz
kernel-qcow2-linux-601149775158ea825326734c2db5d90190249bd7.tar.xz
kernel-qcow2-linux-601149775158ea825326734c2db5d90190249bd7.zip
microblaze: Fix unaligned.h for endians
Synchronized with mips unaligned.h. Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze/include/asm/unaligned.h')
-rw-r--r--arch/microblaze/include/asm/unaligned.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/microblaze/include/asm/unaligned.h b/arch/microblaze/include/asm/unaligned.h
index 2b97cbe500e9..b162ed880495 100644
--- a/arch/microblaze/include/asm/unaligned.h
+++ b/arch/microblaze/include/asm/unaligned.h
@@ -12,18 +12,19 @@
# ifdef __KERNEL__
-# include <linux/unaligned/be_byteshift.h>
-# include <linux/unaligned/le_byteshift.h>
-# include <linux/unaligned/generic.h>
-
-
# ifdef __MICROBLAZEEL__
+# include <linux/unaligned/le_struct.h>
+# include <linux/unaligned/be_byteshift.h>
# define get_unaligned __get_unaligned_le
# define put_unaligned __put_unaligned_le
# else
+# include <linux/unaligned/be_struct.h>
+# include <linux/unaligned/le_byteshift.h>
# define get_unaligned __get_unaligned_be
# define put_unaligned __put_unaligned_be
# endif
+# include <linux/unaligned/generic.h>
+
# endif /* __KERNEL__ */
#endif /* _ASM_MICROBLAZE_UNALIGNED_H */