diff --git a/[refs] b/[refs] index e9cb948c8d6f..ec270a74aad1 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 457daa2b66e07bbd2280b9f8d2b03e800f357243 +refs/heads/master: 567bb8fd47624cb9f894c64ce9530d43d5862a71 diff --git a/trunk/arch/sh/include/asm/swab.h b/trunk/arch/sh/include/asm/swab.h index e69315935107..0e08fe54ad71 100644 --- a/trunk/arch/sh/include/asm/swab.h +++ b/trunk/arch/sh/include/asm/swab.h @@ -14,15 +14,15 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x) { __asm__( #ifdef __SH5__ - "byterev %0, %0\n\t" + "byterev %1, %0\n\t" "shari %0, 32, %0" #else - "swap.b %0, %0\n\t" + "swap.b %1, %0\n\t" "swap.w %0, %0\n\t" "swap.b %0, %0" #endif : "=r" (x) - : "0" (x)); + : "r" (x)); return x; } @@ -32,13 +32,13 @@ static inline __attribute_const__ __u16 __arch_swab16(__u16 x) { __asm__( #ifdef __SH5__ - "byterev %0, %0\n\t" + "byterev %1, %0\n\t" "shari %0, 32, %0" #else - "swap.b %0, %0" + "swap.b %1, %0" #endif : "=r" (x) - : "0" (x)); + : "r" (x)); return x; }