From cb5e3ca248435f19fce0254987ba894a25611974 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 15 Feb 2023 23:40:54 +0100 Subject: Document spl levels of locks taken during interrupts --- kern/thread.h | 1 + 1 file changed, 1 insertion(+) (limited to 'kern/thread.h') diff --git a/kern/thread.h b/kern/thread.h index 7252f410..a5abefcc 100644 --- a/kern/thread.h +++ b/kern/thread.h @@ -387,6 +387,7 @@ extern void thread_unfreeze( #define thread_pcb(th) ((th)->pcb) +/* Shall be taken at splsched only */ #define thread_lock(th) simple_lock(&(th)->lock) #define thread_unlock(th) simple_unlock(&(th)->lock) -- cgit v1.2.3