mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
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>
This commit is contained in:
parent
77bc7ac87d
commit
3447ef29a7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user