KiWaitForContextSwap

VOID __stdcall KiWaitForContextSwap(_ETHREAD *Thread){
  UINT64 SpinCount; 
  LODWORD(SpinCount) = 0;
  while( *((_BYTE *)Thread + 113) )
    KeYieldProcessorEx(&SpinCount);
}

Referenced by:

KeDeleteThread
KiOutSwapKernelStacks