From 8a49b0fd609ca347dbc8400af139c2b5e188f159 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Mon, 19 Feb 2024 00:58:00 +0100 Subject: Introduce and use assert_splsched() --- i386/i386/spl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'i386') diff --git a/i386/i386/spl.h b/i386/i386/spl.h index 2a3f1a3a..41ad225d 100644 --- a/i386/i386/spl.h +++ b/i386/i386/spl.h @@ -59,6 +59,7 @@ extern spl_t (splvm)(void); extern spl_t (spl7)(void); extern spl_t (splclock)(void); extern spl_t (splsched)(void); +#define assert_splsched() assert(splsched() == SPL7) extern spl_t (splhigh)(void); extern spl_t (splx)(spl_t n); -- cgit v1.2.3