feat: serial device interfacing
[lunaix-os.git] / lunaix-os / kernel / ds / waitq.c
index 7045e36731cfc3db8adf5f68d6f099fa2ef244b8..caed3bc6f498a11a705c990d060aab2637d5081f 100644 (file)
@@ -5,6 +5,7 @@
 void
 pwait(waitq_t* queue)
 {
+    assert(__current);
     // prevent race condition.
     cpu_disable_interrupt();