mirror of
https://github.com/reactos/reactos.git
synced 2025-03-01 03:45:16 +00:00
[NTOS:KD64] Improve KdSystemDebugControl
- Explicitly return STATUS_NOT_IMPLEMENTED on not implemented classes - Return STATUS_INVALID_INFO_CLASS on all other classes
This commit is contained in:
parent
a0b009f1ed
commit
0f36ef3392
1 changed files with 32 additions and 3 deletions
|
@ -2222,6 +2222,9 @@ KdSystemDebugControl(
|
||||||
_Out_opt_ PULONG ReturnLength,
|
_Out_opt_ PULONG ReturnLength,
|
||||||
_In_ KPROCESSOR_MODE PreviousMode)
|
_In_ KPROCESSOR_MODE PreviousMode)
|
||||||
{
|
{
|
||||||
|
NTSTATUS Status;
|
||||||
|
ULONG Length = 0;
|
||||||
|
|
||||||
/* Handle some internal commands */
|
/* Handle some internal commands */
|
||||||
switch ((ULONG)Command)
|
switch ((ULONG)Command)
|
||||||
{
|
{
|
||||||
|
@ -2285,9 +2288,35 @@ KdSystemDebugControl(
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Local kernel debugging is not yet supported */
|
switch (Command)
|
||||||
DbgPrint("KdSystemDebugControl is unimplemented!\n");
|
{
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
case SysDbgQueryVersion:
|
||||||
|
case SysDbgReadVirtual:
|
||||||
|
case SysDbgWriteVirtual:
|
||||||
|
case SysDbgReadPhysical:
|
||||||
|
case SysDbgWritePhysical:
|
||||||
|
case SysDbgReadControlSpace:
|
||||||
|
case SysDbgWriteControlSpace:
|
||||||
|
case SysDbgReadIoSpace:
|
||||||
|
case SysDbgWriteIoSpace:
|
||||||
|
case SysDbgReadMsr:
|
||||||
|
case SysDbgWriteMsr:
|
||||||
|
case SysDbgReadBusData:
|
||||||
|
case SysDbgWriteBusData:
|
||||||
|
case SysDbgCheckLowMemory:
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
Status = STATUS_NOT_IMPLEMENTED;
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
Status = STATUS_INVALID_INFO_CLASS;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ReturnLength)
|
||||||
|
*ReturnLength = Length;
|
||||||
|
|
||||||
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue