projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77bc7ac
)
microblaze: Don't use access_ok for unaligned
author
John Williams
<john.williams@petalogix.com>
Tue, 24 Mar 2009 01:10:00 +0000
(11:10 +1000)
committer
Michal 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
patch
|
blob
|
history
diff --git
a/arch/microblaze/include/asm/unaligned.h
b/arch/microblaze/include/asm/unaligned.h
index
9d66b64
..
3658d91
100644
(file)
--- a/
arch/microblaze/include/asm/unaligned.h
+++ b/
arch/microblaze/include/asm/unaligned.h
@@
-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