mirror of
https://github.com/reactos/reactos.git
synced 2025-07-27 16:53:56 +00:00
[NTOS:KD64] First unlock the KD port then lower the IRQL, instead of doing the reverse. (#3942)
This properly reverses the operation of first raising the IRQL before locking the KD port.
This commit is contained in:
parent
c9f335e996
commit
05590079cc
1 changed files with 4 additions and 4 deletions
|
@ -1987,8 +1987,8 @@ KdEnableDebuggerWithLock(IN BOOLEAN NeedLock)
|
||||||
if (NeedLock)
|
if (NeedLock)
|
||||||
{
|
{
|
||||||
/* Do the unlock */
|
/* Do the unlock */
|
||||||
KeLowerIrql(OldIrql);
|
|
||||||
KdpPortUnlock();
|
KdpPortUnlock();
|
||||||
|
KeLowerIrql(OldIrql);
|
||||||
|
|
||||||
/* Fail: We're already enabled */
|
/* Fail: We're already enabled */
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
|
@ -2022,8 +2022,8 @@ KdEnableDebuggerWithLock(IN BOOLEAN NeedLock)
|
||||||
if (NeedLock)
|
if (NeedLock)
|
||||||
{
|
{
|
||||||
/* Yes, now unlock it */
|
/* Yes, now unlock it */
|
||||||
KeLowerIrql(OldIrql);
|
|
||||||
KdpPortUnlock();
|
KdpPortUnlock();
|
||||||
|
KeLowerIrql(OldIrql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We're done */
|
/* We're done */
|
||||||
|
@ -2083,8 +2083,8 @@ KdDisableDebuggerWithLock(IN BOOLEAN NeedLock)
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
/* Release the lock and fail */
|
/* Release the lock and fail */
|
||||||
KeLowerIrql(OldIrql);
|
|
||||||
KdpPortUnlock();
|
KdpPortUnlock();
|
||||||
|
KeLowerIrql(OldIrql);
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2112,8 +2112,8 @@ KdDisableDebuggerWithLock(IN BOOLEAN NeedLock)
|
||||||
if (NeedLock)
|
if (NeedLock)
|
||||||
{
|
{
|
||||||
/* Yes, now unlock it */
|
/* Yes, now unlock it */
|
||||||
KeLowerIrql(OldIrql);
|
|
||||||
KdpPortUnlock();
|
KdpPortUnlock();
|
||||||
|
KeLowerIrql(OldIrql);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* We're done */
|
/* We're done */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue