mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:37:43 +00:00
Kernel: Allow recursion when writing to the debug log
This allows printing in the case e.g. a page fault happens during a log statement
This commit is contained in:
parent
3cc0e86cd8
commit
a308b176ce
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@
|
||||||
#include <LibC/stdarg.h>
|
#include <LibC/stdarg.h>
|
||||||
|
|
||||||
static bool serial_debug;
|
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)
|
void set_serial_debug(bool on_or_off)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue