summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include
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/sparc/include
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/sparc/include')
-rw-r--r--sys/arch/sparc/include/psl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/sparc/include/psl.h b/sys/arch/sparc/include/psl.h
index 1cd1b561797..cb9fc9022f4 100644
--- a/sys/arch/sparc/include/psl.h
+++ b/sys/arch/sparc/include/psl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: psl.h,v 1.23 2007/05/16 19:37:06 thib Exp $ */
+/* $OpenBSD: psl.h,v 1.24 2009/03/15 19:40:40 miod Exp $ */
/* $NetBSD: psl.h,v 1.12 1997/03/10 21:49:11 pk Exp $ */
/*
@@ -173,8 +173,10 @@ void splassert_check(int, const char *);
splassert_check(__wantipl, __func__); \
} \
} while (0)
+#define splsoftassert(wantipl) splassert(wantipl)
#else
-#define splassert(wantipl) do { /* nada */ } while (0)
+#define splassert(wantipl) do { /* nada */ } while (0)
+#define splsoftassert(wantipl) do { /* nada */ } while (0)
#endif
/*