diff options
author | John Williams <john.williams@petalogix.com> | 2009-03-23 21:10:00 -0400 |
---|---|---|
committer | Michal Simek <monstr@monstr.eu> | 2009-06-02 02:39:16 -0400 |
commit | 3447ef29a7f3b1fd0d8d58376950e695e04f6f8b (patch) | |
tree | f3e789ce7917817d99329d9ade3207da42265b39 /arch | |
parent | 77bc7ac87d0d6df1ea099a44e8fc4e998e409606 (diff) |
microblaze: Don't use access_ok for unaligned
it assumes we have an unaligned exception handler which
(a) may not be true
(b) costs a lot of performance
Instead we'll use struct/union method for big endian accesses,
and byte-shifting for little endian.
Signed-off-by: John Williams <john.williams@petalogix.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/microblaze/include/asm/unaligned.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/include/asm/unaligned.h b/arch/microblaze/include/asm/unaligned.h index 9d66b640c910..3658d91ac0fb 100644 --- a/arch/microblaze/include/asm/unaligned.h +++ b/arch/microblaze/include/asm/unaligned.h | |||
@@ -12,7 +12,8 @@ | |||
12 | 12 | ||
13 | # ifdef __KERNEL__ | 13 | # ifdef __KERNEL__ |
14 | 14 | ||
15 | # include <linux/unaligned/access_ok.h> | 15 | # include <linux/unaligned/be_struct.h> |
16 | # include <linux/unaligned/le_byteshift.h> | ||
16 | # include <linux/unaligned/generic.h> | 17 | # include <linux/unaligned/generic.h> |
17 | 18 | ||
18 | # define get_unaligned __get_unaligned_be | 19 | # define get_unaligned __get_unaligned_be |