diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2009-03-15 19:40:42 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2009-03-15 19:40:42 +0000 |
commit | be4afdca2a5b4f0324ddb45bb3f51a9ad4bcbed4 (patch) | |
tree | 7cc7f6b3659d4ba09383a2f37552ffbf1c8add07 /sys/arch/m68k/include | |
parent | db787728ab081e9d84b26e1a98431526e1420c27 (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/m68k/include')
-rw-r--r-- | sys/arch/m68k/include/psl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/m68k/include/psl.h b/sys/arch/m68k/include/psl.h index 309f470622b..f27c0ef0d8b 100644 --- a/sys/arch/m68k/include/psl.h +++ b/sys/arch/m68k/include/psl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: psl.h,v 1.7 2007/11/09 17:28:29 miod Exp $ */ +/* $OpenBSD: psl.h,v 1.8 2009/03/15 19:40:40 miod Exp $ */ /* $NetBSD: psl.h,v 1.5 1994/10/26 07:50:50 cgd Exp $ */ /* @@ -87,8 +87,10 @@ do { \ 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 /* |