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