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

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

diff -u --recursive --new-file v2.1.67/linux/include/asm-alpha/system.h linux/include/asm-alpha/system.h
@@ -52,6 +52,8 @@
 extern unsigned long rdusp(void);
 extern unsigned long rdmces (void);
 extern void wrmces (unsigned long);
+extern unsigned long whami(void);
+extern void wripir(unsigned long);
 
 #define halt() __asm__ __volatile__ ("call_pal %0" : : "i" (PAL_halt) : "memory")
 
@@ -119,11 +121,13 @@
 #define __cli()			setipl(7)
 #define __sti()			setipl(0)
 #define __save_flags(flags)	do { (flags) = getipl(); } while (0)
+#define __save_and_cli(flags)	do { (flags) = swpipl(7); } while (0)
 #define __restore_flags(flags)	setipl(flags)
 
 #define cli()			setipl(7)
 #define sti()			setipl(0)
 #define save_flags(flags)	do { (flags) = getipl(); } while (0)
+#define save_and_cli(flags)	do { (flags) = swpipl(7); } while (0)
 #define restore_flags(flags)	setipl(flags)
 
 /*

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