diff --git a/Kernel/kprintf.cpp b/Kernel/kprintf.cpp index ea386054f2..743232e939 100644 --- a/Kernel/kprintf.cpp +++ b/Kernel/kprintf.cpp @@ -35,7 +35,9 @@ #include static bool serial_debug; -static SpinLock s_log_lock; +// A recursive spinlock allows us to keep writing in the case where a +// page fault happens in the middle of a dbg(), klog(), etc +static RecursiveSpinLock s_log_lock; void set_serial_debug(bool on_or_off) {