https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d6d5caec7c24c7cd186648...
commit d6d5caec7c24c7cd186648a2f3c3a272d2b1b4a6 Author: Hervé Poussineau hpoussin@reactos.org AuthorDate: Sun Apr 12 09:30:32 2020 +0200 Commit: Hervé Poussineau hpoussin@reactos.org CommitDate: Mon Nov 16 08:55:04 2020 +0100
[NTOS:KD] Move some KDBG-specific variables to KDBG-specific file --- ntoskrnl/kd/kdio.c | 9 +++++++++ ntoskrnl/kd64/kddata.c | 11 ----------- 2 files changed, 9 insertions(+), 11 deletions(-)
diff --git a/ntoskrnl/kd/kdio.c b/ntoskrnl/kd/kdio.c index 20b3c142972..22842942596 100644 --- a/ntoskrnl/kd/kdio.c +++ b/ntoskrnl/kd/kdio.c @@ -43,6 +43,15 @@ volatile ULONG KdbDmesgTotalWritten = 0; volatile BOOLEAN KdbpIsInDmesgMode = FALSE; static KSPIN_LOCK KdpDmesgLogSpinLock;
+KDP_DEBUG_MODE KdpDebugMode; +LIST_ENTRY KdProviders = {&KdProviders, &KdProviders}; +KD_DISPATCH_TABLE DispatchTable[KdMax]; + +PKDP_INIT_ROUTINE InitRoutines[KdMax] = {KdpScreenInit, + KdpSerialInit, + KdpDebugLogInit, + KdpKdbgInit}; + static ULONG KdbgNextApiNumber = DbgKdContinueApi; static CONTEXT KdbgContext; static EXCEPTION_RECORD64 KdbgExceptionRecord; diff --git a/ntoskrnl/kd64/kddata.c b/ntoskrnl/kd64/kddata.c index c83f9f6665b..46254df19a2 100644 --- a/ntoskrnl/kd64/kddata.c +++ b/ntoskrnl/kd64/kddata.c @@ -137,17 +137,6 @@ PCHAR KdPrintCircularBuffer = KdPrintDefaultCircularBuffer; ULONG KdPrintBufferSize = sizeof(KdPrintDefaultCircularBuffer); ULONG KdPrintBufferChanges = 0;
-#ifndef _WINKD_ -KDP_DEBUG_MODE KdpDebugMode; -LIST_ENTRY KdProviders = {&KdProviders, &KdProviders}; -KD_DISPATCH_TABLE DispatchTable[KdMax]; - -PKDP_INIT_ROUTINE InitRoutines[KdMax] = {KdpScreenInit, - KdpSerialInit, - KdpDebugLogInit, - KdpKdbgInit}; -#endif - // // Debug Filter Masks //