patch-2.3.30 linux/arch/ppc/xmon/privinst.h

Next file: linux/arch/ppc/xmon/start.c
Previous file: linux/arch/ppc/xmon/ppc-opc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.29/linux/arch/ppc/xmon/privinst.h linux/arch/ppc/xmon/privinst.h
@@ -70,4 +70,13 @@
     asm volatile ("dcbst 0,%0; sync; icbi 0,%0; isync" : : "r" (p));
 }
 
+static inline void cflush(void *p)
+{
+    asm volatile ("dcbf 0,%0; icbi 0,%0" : : "r" (p));
+}
+
+static inline void cinval(void *p)
+{
+    asm volatile ("dcbi 0,%0; icbi 0,%0" : : "r" (p));
+}
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)