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
- Lines: 31
- Date:
Mon Jan 12 15:18:13 1998
- Orig file:
v2.1.78/linux/include/asm-ppc/system.h
- Orig date:
Thu Sep 4 17:07:31 1997
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