summaryrefslogtreecommitdiff
path: root/sys/arch/alpha
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2009-03-15 19:40:42 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2009-03-15 19:40:42 +0000
commitbe4afdca2a5b4f0324ddb45bb3f51a9ad4bcbed4 (patch)
tree7cc7f6b3659d4ba09383a2f37552ffbf1c8add07 /sys/arch/alpha
parentdb787728ab081e9d84b26e1a98431526e1420c27 (diff)
Introduce splsoftassert(), similar to splassert() but for soft interrupt
levels. This will allow for platforms where soft interrupt levels do not map to real hardware interrupt levels to have soft ipl values overlapping hard ipl values without breaking spl asserts.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r--sys/arch/alpha/include/intr.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/alpha/include/intr.h b/sys/arch/alpha/include/intr.h
index 51b2242527f..42f0794e9c2 100644
--- a/sys/arch/alpha/include/intr.h
+++ b/sys/arch/alpha/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.30 2009/03/07 15:31:43 miod Exp $ */
+/* $OpenBSD: intr.h,v 1.31 2009/03/15 19:40:38 miod Exp $ */
/* $NetBSD: intr.h,v 1.26 2000/06/03 20:47:41 thorpej Exp $ */
/*-
@@ -152,8 +152,10 @@ void splassert_check(int, const char *);
splassert_check(__wantipl, __func__); \
} \
} while (0)
+#define splsoftassert(wantipl) splassert(IPL_SOFTINT)
#else
#define splassert(wantipl) do { /* nothing */ } while (0)
+#define splsoftassert(wantipl) do { /* nothing */ } while (0)
#endif
/* IPL-lowering/restoring macros */