[PATCH 1/2] xmon io space read
Jake Moilanen
moilanen at austin.ibm.com
Thu Jan 6 07:52:55 EST 2005
Here is the fix suggested by Paulus for in_be64().
Thanks,
Jake
Signed-off-by: Jake Moilanen <moilanen at austin.ibm.com>
---
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;
}
_
More information about the Linuxppc64-dev
mailing list