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/hppa64/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/hppa64/include')
-rw-r--r-- | sys/arch/hppa64/include/cpu.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/hppa64/include/cpu.h b/sys/arch/hppa64/include/cpu.h index f7c52306250..f8d7841ee39 100644 --- a/sys/arch/hppa64/include/cpu.h +++ b/sys/arch/hppa64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.14 2008/10/10 08:36:28 art Exp $ */ +/* $OpenBSD: cpu.h,v 1.15 2009/03/15 19:40:40 miod Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -155,8 +155,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 /* DIAGNOSTIC */ /* types */ |