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/powerpc/include/intr.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/arch/powerpc/include/intr.h') diff --git a/sys/arch/powerpc/include/intr.h b/sys/arch/powerpc/include/intr.h index c7bd5410c40..d2f85d51aaf 100644 --- a/sys/arch/powerpc/include/intr.h +++ b/sys/arch/powerpc/include/intr.h @@ -1,4 +1,4 @@ -/* $OpenBSD: intr.h,v 1.38 2008/11/21 17:35:52 deraadt Exp $ */ +/* $OpenBSD: intr.h,v 1.39 2009/03/15 19:40:40 miod Exp $ */ /* * Copyright (c) 1997 Per Fogelstrom, Opsycon AB and RTMX Inc, USA. @@ -77,6 +77,7 @@ extern int imask[IPL_NUM]; /* SPL asserts */ #define splassert(wantipl) /* nothing */ +#define splsoftassert(wantipl) /* nothing */ #define set_sint(p) atomic_setbits_int(&curcpu()->ci_ipending, p) -- cgit v1.2.3