summaryrefslogtreecommitdiffstats
path: root/arch/mips
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2008-12-17 13:28:39 -0800
committerRalf Baechle <ralf@linux-mips.org>2008-12-22 08:54:47 +0000
commited2b03ed3cec2a4719d04ef208319f9de6a4258a (patch)
tree302f49c0e98a736a5949a92538bce999fb5bc41a /arch/mips
parent08d9d1c4d44ce43856da048cb0737ef769b61e9a (diff)
downloadop-kernel-dev-ed2b03ed3cec2a4719d04ef208319f9de6a4258a.zip
op-kernel-dev-ed2b03ed3cec2a4719d04ef208319f9de6a4258a.tar.gz
MIPS: MIPS64R2: Fix buggy __arch_swab64
The way the code is written it was assuming dshd has the function of a hypothetical dshw instruction ... Signed-off-by: David Daney <ddaney@caviumnetworks.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips')
-rw-r--r--arch/mips/include/asm/byteorder.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/mips/include/asm/byteorder.h b/arch/mips/include/asm/byteorder.h
index 2988d29..33790b9 100644
--- a/arch/mips/include/asm/byteorder.h
+++ b/arch/mips/include/asm/byteorder.h
@@ -50,9 +50,8 @@ static inline __attribute_const__ __u32 __arch_swab32(__u32 x)
static inline __attribute_const__ __u64 __arch_swab64(__u64 x)
{
__asm__(
- " dsbh %0, %1 \n"
- " dshd %0, %0 \n"
- " drotr %0, %0, 32 \n"
+ " dsbh %0, %1\n"
+ " dshd %0, %0"
: "=r" (x)
: "r" (x));
OpenPOWER on IntegriCloud