mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[NTOS:KD64] Implement KdSystemDebugControl: SysDbgReadMsr/SysDbgWriteMsr
This commit is contained in:
parent
b187662f39
commit
19046a253b
1 changed files with 22 additions and 0 deletions
|
@ -2485,7 +2485,29 @@ KdSystemDebugControl(
|
|||
break;
|
||||
|
||||
case SysDbgReadMsr:
|
||||
if (InputBufferLength != sizeof(SYSDBG_MSR))
|
||||
{
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
else
|
||||
{
|
||||
PSYSDBG_MSR Request = (PSYSDBG_MSR)InputBuffer;
|
||||
Status = KdpSysReadMsr(Request->Address, &Request->Data);
|
||||
}
|
||||
break;
|
||||
|
||||
case SysDbgWriteMsr:
|
||||
if (InputBufferLength != sizeof(SYSDBG_MSR))
|
||||
{
|
||||
Status = STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
else
|
||||
{
|
||||
PSYSDBG_MSR Request = (PSYSDBG_MSR)InputBuffer;
|
||||
Status = KdpSysWriteMsr(Request->Address, &Request->Data);
|
||||
}
|
||||
break;
|
||||
|
||||
case SysDbgReadBusData:
|
||||
case SysDbgWriteBusData:
|
||||
case SysDbgCheckLowMemory:
|
||||
|
|
Loading…
Reference in a new issue