patch-2.1.124 linux/include/asm-ppc/byteorder.h
Next file: linux/include/asm-ppc/cache.h
Previous file: linux/include/asm-ppc/bootx.h
Back to the patch index
Back to the overall index
- Lines: 27
- Date:
Wed Sep 30 10:14:33 1998
- Orig file:
v2.1.123/linux/include/asm-ppc/byteorder.h
- Orig date:
Thu Aug 6 14:06:33 1998
diff -u --recursive --new-file v2.1.123/linux/include/asm-ppc/byteorder.h linux/include/asm-ppc/byteorder.h
@@ -2,7 +2,7 @@
#define _PPC_BYTEORDER_H
/*
- * $Id: byteorder.h,v 1.13 1998/08/03 19:05:11 geert Exp $
+ * $Id: byteorder.h,v 1.14 1998/08/12 05:07:12 paulus Exp $
*/
#include <asm/types.h>
@@ -13,7 +13,7 @@
{
unsigned val;
- __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr));
+ __asm__ __volatile__ ("lhbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr));
return val;
}
@@ -26,7 +26,7 @@
{
unsigned val;
- __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (addr));
+ __asm__ __volatile__ ("lwbrx %0,0,%1" : "=r" (val) : "r" (addr), "m" (*addr));
return val;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov