From d6e9c6ada97bfaa5568b74faf6f7b2dba62fe7d4 Mon Sep 17 00:00:00 2001 From: Paul Mundt Date: Sun, 10 May 2009 14:25:39 +0900 Subject: [PATCH] --- yaml --- r: 146770 b: refs/heads/master c: 567bb8fd47624cb9f894c64ce9530d43d5862a71 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/sh/include/asm/swab.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) 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; }