[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
index a71dba2d0383a1fd5fbeea3aca949875c0aaf74a..6b0fe55edf6461bdbf336b01fb58c100b926f530 100644 (file)
@@ -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));