Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3447ef29 authored by John Williams's avatar John Williams Committed by Michal Simek
Browse files

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: default avatarJohn Williams <john.williams@petalogix.com>
parent 77bc7ac8
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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