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/hppa/include/intr.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/arch/hppa/include') diff --git a/sys/arch/hppa/include/intr.h b/sys/arch/hppa/include/intr.h index 7586fc83f00..74efdabd14b 100644 --- a/sys/arch/hppa/include/intr.h +++ b/sys/arch/hppa/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.24 2008/04/27 14:36:38 kettenis Exp $ */ +/* $OpenBSD: intr.h,v 1.25 2009/03/15 19:40:40 miod Exp $ */ /* * Copyright (c) 2002-2004 Michael Shalayeff @@ -70,8 +70,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 */ void cpu_intr_init(void); -- cgit v1.2.3