diff --git a/kernel/kernel/Debug.cpp b/kernel/kernel/Debug.cpp index c85d4e05c3..e096059438 100644 --- a/kernel/kernel/Debug.cpp +++ b/kernel/kernel/Debug.cpp @@ -25,6 +25,8 @@ namespace Debug uintptr_t rip; }; + SpinLockGuard _(s_debug_lock); + stackframe* frame = (stackframe*)__builtin_frame_address(0); if (!frame) {