mirror of
https://github.com/reactos/reactos.git
synced 2025-06-08 19:00:42 +00:00
[NTOS:KD] Merge KdEnterDebugger()/KdExitDebugger() with kd64 version
This commit is contained in:
parent
81b184741d
commit
ebb6f29e69
1 changed files with 0 additions and 6 deletions
|
@ -1877,7 +1877,6 @@ NTAPI
|
||||||
KdEnterDebugger(IN PKTRAP_FRAME TrapFrame,
|
KdEnterDebugger(IN PKTRAP_FRAME TrapFrame,
|
||||||
IN PKEXCEPTION_FRAME ExceptionFrame)
|
IN PKEXCEPTION_FRAME ExceptionFrame)
|
||||||
{
|
{
|
||||||
#ifdef _WINKD_
|
|
||||||
BOOLEAN Enable;
|
BOOLEAN Enable;
|
||||||
|
|
||||||
/* Check if we have a trap frame */
|
/* 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 if interrupts needs to be re-enabled */
|
||||||
return Enable;
|
return Enable;
|
||||||
#else
|
|
||||||
return FALSE;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
KdExitDebugger(IN BOOLEAN Enable)
|
KdExitDebugger(IN BOOLEAN Enable)
|
||||||
{
|
{
|
||||||
#ifdef _WINKD_
|
|
||||||
ULONG TimeSlip;
|
ULONG TimeSlip;
|
||||||
|
|
||||||
/* Restore the state and unlock the port */
|
/* Restore the state and unlock the port */
|
||||||
|
@ -1963,7 +1958,6 @@ KdExitDebugger(IN BOOLEAN Enable)
|
||||||
InterlockedIncrement(&KdpTimeSlipPending);
|
InterlockedIncrement(&KdpTimeSlipPending);
|
||||||
KeInsertQueueDpc(&KdpTimeSlipDpc, NULL, NULL); // FIXME: this can trigger context switches!
|
KeInsertQueueDpc(&KdpTimeSlipDpc, NULL, NULL); // FIXME: this can trigger context switches!
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
|
Loading…
Reference in a new issue