diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-19 00:58:00 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-02-19 00:58:00 +0100 |
commit | 8a49b0fd609ca347dbc8400af139c2b5e188f159 (patch) | |
tree | 6c149153698898d026332accad91b9e97827b625 /kern/thread.h | |
parent | 83bb0f42038f12beb9f2a31a8ef3f7ff75938681 (diff) | |
download | gnumach-8a49b0fd609ca347dbc8400af139c2b5e188f159.tar.gz gnumach-8a49b0fd609ca347dbc8400af139c2b5e188f159.tar.bz2 gnumach-8a49b0fd609ca347dbc8400af139c2b5e188f159.zip |
Introduce and use assert_splsched()
Diffstat (limited to 'kern/thread.h')
-rw-r--r-- | kern/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/thread.h b/kern/thread.h index 21b25030..81d32924 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -399,11 +399,11 @@ extern void thread_unfreeze( /* Shall be taken at splsched only */ #ifdef MACH_LDEBUG #define thread_lock(th) do { \ - assert(splsched() == SPL7); \ + assert_splsched(); \ simple_lock_nocheck(&(th)->lock); \ } while (0) #define thread_unlock(th) do { \ - assert(splsched() == SPL7); \ + assert_splsched(); \ simple_unlock_nocheck(&(th)->lock); \ } while (0) #else |