diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-06-23 05:30:31 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-06-23 05:30:31 +0000 |
commit | 46d45f2c848af0372c090f068fad58602cc7c4f4 (patch) | |
tree | 3cd00089a669c6d76ef6930ae6325ce43d15b9d4 /target/linux/adm5120-2.6/patches | |
parent | aa1b4ab09a4f3f0890c1e9933767d0816e5deb3d (diff) | |
download | upstream-46d45f2c848af0372c090f068fad58602cc7c4f4.tar.gz upstream-46d45f2c848af0372c090f068fad58602cc7c4f4.tar.bz2 upstream-46d45f2c848af0372c090f068fad58602cc7c4f4.zip |
[adm5120] fix hardware byte swapping to work in little endian mode as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7712 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/adm5120-2.6/patches')
-rw-r--r-- | target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch | 2 |
1 files changed, 1 insertions, 1 deletions
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 a71dba2d03..6b0fe55edf 100644 --- 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__ ( -+ " sw %2, 0xC8(%1) \n" ++ " sh %2, 0xCA(%1) \n" + " lhu %0, 0xCC(%1) \n" + : "=r" (x) + : "r" (0xB2000000), "r" (x)); |