[PATCH] PPC64 Fix in_be64 definition

From: Paul Mackerras
Date: Fri Jan 21 2005 - 20:49:56 EST


This patch is from Jake Moilanen <moilanen@xxxxxxxxxxxxxx>.

The instruction syntax for the in_be64 inline asm was incorrect for
the "m" constraint for the address parameter. This patch fixes the
instruction in the inline asm.

Signed-off-by: Jake Moilanen <moilanen@xxxxxxxxxxxxxx>
Signed-off-by: Paul Mackerras <paulus@xxxxxxxxx>

diff -puN include/asm-ppc64/io.h~in_be64-fix include/asm-ppc64/io.h
--- linux-2.6-bk/include/asm-ppc64/io.h~in_be64-fix Tue Jan 4 15:33:22 2005
+++ linux-2.6-bk-moilanen/include/asm-ppc64/io.h Wed Jan 5 08:08:03 2005
@@ -371,7 +371,7 @@ static inline unsigned long in_be64(cons
{
unsigned long ret;

- __asm__ __volatile__("ld %0,0(%1); twi 0,%0,0; isync"
+ __asm__ __volatile__("ld%U1%X1 %0,%1; twi 0,%0,0; isync"
: "=r" (ret) : "m" (*addr));
return ret;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/