projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[adm5120] fix hardware byte swapping to work in little endian mode as well
[openwrt-10.03/.git]
/
target
/
linux
/
adm5120-2.6
/
patches
/
008-adm5120_hardware_swab.patch
diff --git
a/target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch
b/target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch
index a71dba2d0383a1fd5fbeea3aca949875c0aaf74a..6b0fe55edf6461bdbf336b01fb58c100b926f530 100644
(file)
--- a/
target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch
+++ b/
target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch
@@
-9,7
+9,7
@@
+static __inline__ __attribute_const__ __u16 ___adm5120__swab16(__u16 x)
+{
+ __asm__ (
-+ " s
w %2, 0xC8
(%1) \n"
++ " s
h %2, 0xCA
(%1) \n"
+ " lhu %0, 0xCC(%1) \n"
+ : "=r" (x)
+ : "r" (0xB2000000), "r" (x));