summaryrefslogtreecommitdiff
path: root/sys/arch/mac68k
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-09-18 19:32:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-09-18 19:32:42 +0000
commit0b4d73772f38f9c1604a1045e8f2b6556a49601a (patch)
tree736fa918625c874a5763d680883f670fa9172cc0 /sys/arch/mac68k
parentceaa863ddf2c057c98ae7480008cb6d951e91a4d (diff)
Fix conversion of symbolic IPL level to hardware PSL value in the mutex code.
This is a noop on all arches but hp300, where this fixes (at least) IPL_BIO mutexes.
Diffstat (limited to 'sys/arch/mac68k')
-rw-r--r--sys/arch/mac68k/include/intr.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/mac68k/include/intr.h b/sys/arch/mac68k/include/intr.h
index 42d1140ef30..7441ec32c99 100644
--- a/sys/arch/mac68k/include/intr.h
+++ b/sys/arch/mac68k/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.19 2009/03/15 20:40:25 miod Exp $ */
+/* $OpenBSD: intr.h,v 1.20 2009/09/18 19:32:41 miod Exp $ */
/* $NetBSD: intr.h,v 1.9 1998/08/12 06:58:42 scottr Exp $ */
/*
@@ -65,6 +65,8 @@ extern u_short mac68k_statclockipl;
#define IPL_STATCLOCK PSLTOIPL(mac68k_statclockipl)
#define IPL_HIGH 7
+#define MD_IPLTOPSL(ipl) IPLTOPSL(ipl)
+
/*
* These should be used for:
* 1) ensuring mutual exclusion (why use processor level?)
@@ -89,7 +91,6 @@ extern u_short mac68k_statclockipl;
#define splsched() splhigh()
/* These spl calls are _not_ to be used by machine-independent code. */
-#define spladb() splhigh()
#define splzs() splserial()
/* watch out for side effects */