--- Gnu-Mach/kern/sched_prim.c 2020/09/02 04:49:48 1.1.1.5 +++ Gnu-Mach/kern/sched_prim.c 2020/09/02 04:51:54 1.1.1.6 @@ -446,6 +446,9 @@ void thread_wakeup_prim( * occurs. The specified lock is unlocked before releasing * the cpu. (This is a convenient way to sleep without manually * calling assert_wait). + * + * Note: if the event may be woken from an interrupt handler, this must be + * called at an spl level that prevents such interrupts. */ void thread_sleep( event_t event,