KeFlushRsb

NTSTATUS __stdcall KeFlushRsb(){
  unsigned __int8 CurrentIrql; 
  struct _KPRCB *CurrentPrcb; 
  NTSTATUS result; 

  CurrentIrql = KeGetCurrentIrql();
  __writecr8(0xCui64);
  KiIpiSendPacket(IpiAllButSelf, 0i64, (INT64)KiFlushRsbTarget, 0i64, 0i64, 0i64);
  CurrentPrcb = KeGetCurrentPrcb();
  while( CurrentPrcb->PacketBarrier )
    _mm_pause();
  KiFlushCurrentRsb();
  result = CurrentIrql;
  __writecr8(CurrentIrql);
  return result;
}

Referenced by:

No references.