microblaze: Don't use access_ok for unaligned
authorJohn Williams <john.williams@petalogix.com>
Tue, 24 Mar 2009 01:10:00 +0000 (11:10 +1000)
committerMichal Simek <monstr@monstr.eu>
Tue, 2 Jun 2009 06:39:16 +0000 (08:39 +0200)
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>
arch/microblaze/include/asm/unaligned.h

index 9d66b640c910635f5c6baa56ba4e7d2c3ba46d3a..3658d91ac0fb95ead00dbc3bca4fd9e0b8d36457 100644 (file)
@@ -12,7 +12,8 @@
 
 # ifdef __KERNEL__
 
-# include <linux/unaligned/access_ok.h>
+# include <linux/unaligned/be_struct.h>
+# include <linux/unaligned/le_byteshift.h>
 # include <linux/unaligned/generic.h>
 
 # define get_unaligned __get_unaligned_be