summaryrefslogtreecommitdiff
path: root/sys/arch/sun3/include
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-02-14 18:02:00 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-02-14 18:02:00 +0000
commitec4406dcfdc51482dfa213c22d01bf6a7155c2a2 (patch)
tree02f89188f6e4e2d81db449942753b1aa09b57614 /sys/arch/sun3/include
parent7fabe79fca48742ba4b8966e73a45d11f347e000 (diff)
change spl0 from macro to assember function in locore.s
Diffstat (limited to 'sys/arch/sun3/include')
-rw-r--r--sys/arch/sun3/include/param.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sun3/include/param.h b/sys/arch/sun3/include/param.h
index a16a48420a9..266312289d4 100644
--- a/sys/arch/sun3/include/param.h
+++ b/sys/arch/sun3/include/param.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: param.h,v 1.9 1997/02/14 17:57:06 kstailey Exp $ */
+/* $OpenBSD: param.h,v 1.10 1997/02/14 18:01:59 kstailey Exp $ */
/* $NetBSD: param.h,v 1.34 1996/03/04 05:04:40 cgd Exp $ */
/*
@@ -171,7 +171,6 @@
* have no need to check for any simulated interrupts, etc.
*/
-#define spl0() _spl(PSL_S|PSL_IPL0)
#define spl1() _spl(PSL_S|PSL_IPL1)
#define spl2() _spl(PSL_S|PSL_IPL2)
#define spl3() _spl(PSL_S|PSL_IPL3)
@@ -208,6 +207,9 @@
#define splhigh() spl7()
#define splsched() spl7()
+/* watch out for side effects */
+#define splx(s) (s & PSL_IPL ? _spl(s) : spl0())
+
/* Get current sr value (debug, etc.) */
extern int getsr __P((void));