diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2005-05-01 09:55:50 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2005-05-01 09:55:50 +0000 |
commit | 5f77a732972cb1329a2fd64dd2fe6540c1dfbee6 (patch) | |
tree | 1923315eff03edf7109969e6cd13e2e68f0c871e /sys/arch/mac68k/include | |
parent | 6e9804297a3ff083bc61d8f4b088f1d2766a559d (diff) |
Bring raise-only semantics to splsoft* on m68k and m88k, as done elsewhere.
Diffstat (limited to 'sys/arch/mac68k/include')
-rw-r--r-- | sys/arch/mac68k/include/intr.h | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/sys/arch/mac68k/include/intr.h b/sys/arch/mac68k/include/intr.h index d17def7d0bb..d7a835dd596 100644 --- a/sys/arch/mac68k/include/intr.h +++ b/sys/arch/mac68k/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.11 2004/12/02 22:00:31 martin Exp $ */ +/* $OpenBSD: intr.h,v 1.12 2005/05/01 09:55:49 miod Exp $ */ /* $NetBSD: intr.h,v 1.9 1998/08/12 06:58:42 scottr Exp $ */ /* @@ -66,20 +66,6 @@ _spl_r; \ }) -/* spl0 requires checking for software interrupts */ -#define spl1() _spl(PSL_S|PSL_IPL1) -#define spl2() _spl(PSL_S|PSL_IPL2) -#define spl3() _spl(PSL_S|PSL_IPL3) -#define spl4() _spl(PSL_S|PSL_IPL4) -#define spl5() _spl(PSL_S|PSL_IPL5) -#define spl6() _spl(PSL_S|PSL_IPL6) -#define spl7() _spl(PSL_S|PSL_IPL7) - -/* These spl calls are _not_ to be used by machine-independent code. */ -#define spladb() splhigh() -#define splzs() splserial() -#define splsoft() spl1() - /* * splnet must block hardware network interrupts * splimp must be > spltty @@ -119,6 +105,7 @@ extern u_short mac68k_statclockipl; * everything at spl2, and everything but the panic switch and * power at spl4. */ +#define splsoft() _splraise(PSL_S | PSL_IPL1) #define splsoftclock() splsoft() #define splsoftnet() splsoft() #define spltty() _splraise(mac68k_ttyipl) @@ -129,11 +116,15 @@ extern u_short mac68k_statclockipl; #define splaudio() _splraise(mac68k_audioipl) #define splclock() _splraise(mac68k_clockipl) #define splstatclock() _splraise(mac68k_statclockipl) -#define splserial() spl4() -#define splhigh() spl7() +#define splserial() _splraise(PSL_S | PSL_IPL4) +#define splhigh() _spl(PSL_S | PSL_IPL7) + +/* These spl calls are _not_ to be used by machine-independent code. */ +#define spladb() splhigh() +#define splzs() splserial() /* watch out for side effects */ -#define splx(s) ((s) & PSL_IPL ? _spl(s) : spl0()) +#define splx(s) ((s) & PSL_IPL ? _spl(s) : spl0()) /* * simulated software interrupt register |