Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ed2b03ed authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

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: default avatarDavid Daney <ddaney@caviumnetworks.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 08d9d1c4
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -51,8 +51,7 @@ static inline __attribute_const__ __u64 __arch_swab64(__u64 x)
{
	__asm__(
	"	dsbh	%0, %1\n"
	"	dshd	%0, %0			\n"
	"	drotr	%0, %0, 32		\n"
	"	dshd	%0, %0"
	: "=r" (x)
	: "r" (x));