From 678a0f4f48f8a4d8987b7cc09c32e935ad07201f Mon Sep 17 00:00:00 2001 From: Aiken Harris Date: Sat, 6 Jun 2026 19:00:49 +0200 Subject: [PATCH] Add static member definitions for kernel debugger active flag and kernel panic state --- xtoskrnl/kd/data.cc | 3 +++ xtoskrnl/ke/data.cc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/xtoskrnl/kd/data.cc b/xtoskrnl/kd/data.cc index 4a999a3..044a55e 100644 --- a/xtoskrnl/kd/data.cc +++ b/xtoskrnl/kd/data.cc @@ -9,6 +9,9 @@ #include +/* Debugger active flag */ +BOOLEAN KD::Debugger::Active; + /* Debug I/O spinlock */ KSPIN_LOCK KD::DebugIo::DebugIoLock; diff --git a/xtoskrnl/ke/data.cc b/xtoskrnl/ke/data.cc index ff7a2eb..a451c80 100644 --- a/xtoskrnl/ke/data.cc +++ b/xtoskrnl/ke/data.cc @@ -12,6 +12,9 @@ /* Kernel initialization block passed by boot loader */ PKERNEL_INITIALIZATION_BLOCK KE::BootInformation::InitializationBlock = {}; +/* Kernel panic state */ +BOOLEAN KE::Crash::KernelPanic; + /* Kernel initial process */ EPROCESS KE::KProcess::InitialProcess;