patch-2.1.79 linux/include/asm-ppc/system.h

Next file: linux/include/asm-ppc/types.h
Previous file: linux/include/asm-ppc/spinlock.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.78/linux/include/asm-ppc/system.h linux/include/asm-ppc/system.h
@@ -10,6 +10,22 @@
 	__asm__ __volatile__ ("mfmsr %0" : "=r" ((flags)) : : "memory"); })
 #define __save_and_cli(flags)	({__save_flags(flags);__cli();})
 
+extern __inline__ void dcbf(void *line)
+{
+	asm("dcbf %0,%1\n\t"
+	    "sync \n\t"
+	    "isync \n\t"
+	    :: "r" (line), "r" (0));
+}
+
+extern __inline__ void dcbi(void *line)
+{
+	asm("dcbi %0,%1\n\t"
+	    "sync \n\t"
+	    "isync \n\t"
+	    :: "r" (line), "r" (0));
+}
+     
 extern __inline__ void __restore_flags(unsigned long flags)
 {
         extern unsigned lost_interrupts;
@@ -78,7 +94,6 @@
 		    unsigned long context);
 
 struct pt_regs;
-extern int do_signal(unsigned long oldmask, struct pt_regs *regs);
 extern void dump_regs(struct pt_regs *);
 
 #ifndef __SMP__

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov