projects
/
openwrt.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.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
a71dba2
..
6b0fe55
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));
This page took
0.023043 seconds
and
4
git commands to generate.