https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ebb6f29e69c6cdd0cee8b…
commit ebb6f29e69c6cdd0cee8bb5ca7e7644fb992c22c
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Mon Mar 9 23:46:32 2020 +0100
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Nov 16 08:55:03 2020 +0100
[NTOS:KD] Merge KdEnterDebugger()/KdExitDebugger() with kd64 version
---
ntoskrnl/kd64/kdapi.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/ntoskrnl/kd64/kdapi.c b/ntoskrnl/kd64/kdapi.c
index 847fd388fe0..5aeb7dc6750 100644
--- a/ntoskrnl/kd64/kdapi.c
+++ b/ntoskrnl/kd64/kdapi.c
@@ -1877,7 +1877,6 @@ NTAPI
KdEnterDebugger(IN PKTRAP_FRAME TrapFrame,
IN PKEXCEPTION_FRAME ExceptionFrame)
{
-#ifdef _WINKD_
BOOLEAN Enable;
/* Check if we have a trap frame */
@@ -1924,16 +1923,12 @@ KdEnterDebugger(IN PKTRAP_FRAME TrapFrame,
/* Return if interrupts needs to be re-enabled */
return Enable;
-#else
- return FALSE;
-#endif
}
VOID
NTAPI
KdExitDebugger(IN BOOLEAN Enable)
{
-#ifdef _WINKD_
ULONG TimeSlip;
/* Restore the state and unlock the port */
@@ -1963,7 +1958,6 @@ KdExitDebugger(IN BOOLEAN Enable)
InterlockedIncrement(&KdpTimeSlipPending);
KeInsertQueueDpc(&KdpTimeSlipDpc, NULL, NULL); // FIXME: this can trigger
context switches!
}
-#endif
}
NTSTATUS