patch-1.3.56 linux/include/asm-alpha/system.h

Next file: linux/include/linux/mm.h
Previous file: linux/include/asm-alpha/pgtable.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.55/linux/include/asm-alpha/system.h linux/include/asm-alpha/system.h
@@ -59,6 +59,8 @@
 	alpha_switch_to((unsigned long) &(p)->tss - 0xfffffc0000000000); \
 } while (0)
 
+extern void imb(void);
+
 #define mb() \
 __asm__ __volatile__("mb": : :"memory")
 
@@ -96,6 +98,17 @@
 #define sti()			setipl(0)
 #define save_flags(flags)	do { flags = getipl(); } while (0)
 #define restore_flags(flags)	setipl(flags)
+
+/*
+ * TB routines..
+ */
+extern void tbi(long type, ...);
+
+#define tbisi(x)	tbi(1,(x))
+#define tbisd(x)	tbi(2,(x))
+#define tbis(x)		tbi(3,(x))
+#define tbiap()		tbi(-1)
+#define tbia()		tbi(-2)
 
 /*
  * Give prototypes to shut up gcc.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this