From 0b1fdf1ad8f3c6f0fc59ecf63b18d62d9b032ed8 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Sat, 23 Jun 2007 05:30:31 +0000 Subject: fix hardware byte swapping to work in little endian mode as well SVN-Revision: 7712 --- target/linux/adm5120-2.6/patches/008-adm5120_hardware_swab.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/adm5120-2.6/patches') 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)); -- cgit v1.2.3