KdpSysWriteControlSpace
NTSTATUS __stdcall KdpSysWriteControlSpace(
UINT64 Processor,
UINT64 Address,
VOID *Buffer,
UINT64 Request,
UINT64 *Actual){
unsigned int v5;
__int64 v6;
__int64 v9;
UINT64 v10;
UINT64 Flags;
v5 = Request;
v6 = (unsigned int)Processor;
*(_DWORD *)Actual = 0;
if( (unsigned int)Processor >= (unsigned int)KeQueryActiveProcessorCountEx(0xFFFFu) )
return -1073741823;
v9 = (__int64)*(&KiProcessorBlock + v6);
if( !v9 || Address != 2 )
return -1073741823;
v10 = 240i64;
LODWORD(Flags) = 4;
if( v5 <= 0xF0 )
v10 = v5;
return KdpCopyMemoryChunks((UINT64)Buffer, (PVOID)(v9 + 256), v10, 0i64, Flags, Actual);
}Referenced by:
KdSystemDebugControl
KdpWriteControlSpace