[NTOS] Set SwapBusy properly for i386

Co-authored-by: Hermès BÉLUSCA - MAÏTO <hermes.belusca-maito@reactos.org>
This commit is contained in:
Justin Miller 2022-03-26 22:22:45 -07:00 committed by George Bișoc
parent 2a33aed7cf
commit 24d124f99f

View file

@ -427,6 +427,9 @@ KiSwapContextEntry(IN PKSWITCHFRAME SwitchFrame,
/* Get the old thread and set its kernel stack */
OldThread->KernelStack = SwitchFrame;
/* Set swapbusy to false for the new thread */
NewThread->SwapBusy = FALSE;
/* ISRs can change FPU state, so disable interrupts while checking */
_disable();