Skip to content

Commit

Permalink
microblaze: Don't use access_ok for unaligned
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
John Williams authored and Michal Simek committed Jun 2, 2009
1 parent 77bc7ac commit 3447ef2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion arch/microblaze/include/asm/unaligned.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3447ef2

Please sign in to comment.