diff options
author | Michal Simek <monstr@monstr.eu> | 2011-02-18 08:29:20 -0500 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2011-03-09 02:09:53 -0500 |
commit | 601149775158ea825326734c2db5d90190249bd7 (patch) | |
tree | e14cb4399d844c1f2190ade041eec2ca90d06107 /arch/microblaze | |
parent | c06b3a068223cb885d85ac4f6c31e870ca2b5aac (diff) |
microblaze: Fix unaligned.h for endians
Synchronized with mips unaligned.h.
Signed-off-by: Michal Simek <monstr@monstr.eu>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/include/asm/unaligned.h | 11 |
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 @@ | |||
12 | 12 | ||
13 | # ifdef __KERNEL__ | 13 | # ifdef __KERNEL__ |
14 | 14 | ||
15 | # include <linux/unaligned/be_byteshift.h> | ||
16 | # include <linux/unaligned/le_byteshift.h> | ||
17 | # include <linux/unaligned/generic.h> | ||
18 | |||
19 | |||
20 | # ifdef __MICROBLAZEEL__ | 15 | # ifdef __MICROBLAZEEL__ |
16 | # include <linux/unaligned/le_struct.h> | ||
17 | # include <linux/unaligned/be_byteshift.h> | ||
21 | # define get_unaligned __get_unaligned_le | 18 | # define get_unaligned __get_unaligned_le |
22 | # define put_unaligned __put_unaligned_le | 19 | # define put_unaligned __put_unaligned_le |
23 | # else | 20 | # else |
21 | # include <linux/unaligned/be_struct.h> | ||
22 | # include <linux/unaligned/le_byteshift.h> | ||
24 | # define get_unaligned __get_unaligned_be | 23 | # define get_unaligned __get_unaligned_be |
25 | # define put_unaligned __put_unaligned_be | 24 | # define put_unaligned __put_unaligned_be |
26 | # endif | 25 | # endif |
27 | 26 | ||
27 | # include <linux/unaligned/generic.h> | ||
28 | |||
28 | # endif /* __KERNEL__ */ | 29 | # endif /* __KERNEL__ */ |
29 | #endif /* _ASM_MICROBLAZE_UNALIGNED_H */ | 30 | #endif /* _ASM_MICROBLAZE_UNALIGNED_H */ |