File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -2485,7 +2485,29 @@ KdSystemDebugControl(
24852485 break ;
24862486
24872487 case SysDbgReadMsr :
2488+ if (InputBufferLength != sizeof (SYSDBG_MSR ))
2489+ {
2490+ Status = STATUS_INFO_LENGTH_MISMATCH ;
2491+ }
2492+ else
2493+ {
2494+ PSYSDBG_MSR Request = (PSYSDBG_MSR )InputBuffer ;
2495+ Status = KdpSysReadMsr (Request -> Address , & Request -> Data );
2496+ }
2497+ break ;
2498+
24882499 case SysDbgWriteMsr :
2500+ if (InputBufferLength != sizeof (SYSDBG_MSR ))
2501+ {
2502+ Status = STATUS_INFO_LENGTH_MISMATCH ;
2503+ }
2504+ else
2505+ {
2506+ PSYSDBG_MSR Request = (PSYSDBG_MSR )InputBuffer ;
2507+ Status = KdpSysWriteMsr (Request -> Address , & Request -> Data );
2508+ }
2509+ break ;
2510+
24892511 case SysDbgReadBusData :
24902512 case SysDbgWriteBusData :
24912513 case SysDbgCheckLowMemory :
You can’t perform that action at this time.
0 commit comments