From be4afdca2a5b4f0324ddb45bb3f51a9ad4bcbed4 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Sun, 15 Mar 2009 19:40:42 +0000 Subject: 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. --- sys/arch/vax/include/intr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/arch/vax/include') diff --git a/sys/arch/vax/include/intr.h b/sys/arch/vax/include/intr.h index 5f225fdaf9e..cc135ccf42f 100644 --- a/sys/arch/vax/include/intr.h +++ b/sys/arch/vax/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.9 2008/08/18 23:08:55 miod Exp $ */ +/* $OpenBSD: intr.h,v 1.10 2009/03/15 19:40:40 miod Exp $ */ /* $NetBSD: intr.h,v 1.1 1998/08/18 23:55:00 matt Exp $ */ /* @@ -115,8 +115,10 @@ void splassert_check(int, const char *); splassert_check(__wantipl, __func__); \ } \ } while (0) +#define splsoftassert(wantipl) splassert(wantipl) #else #define splassert(wantipl) do { /* nothing */ } while (0) +#define splsoftassert(wantipl) do { /* nothing */ } while (0) #endif #endif /* _VAX_INTR_H */ -- cgit v1.2.3