mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[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:
parent
2a33aed7cf
commit
24d124f99f
1 changed files with 3 additions and 0 deletions
|
@ -427,6 +427,9 @@ KiSwapContextEntry(IN PKSWITCHFRAME SwitchFrame,
|
||||||
/* Get the old thread and set its kernel stack */
|
/* Get the old thread and set its kernel stack */
|
||||||
OldThread->KernelStack = SwitchFrame;
|
OldThread->KernelStack = SwitchFrame;
|
||||||
|
|
||||||
|
/* Set swapbusy to false for the new thread */
|
||||||
|
NewThread->SwapBusy = FALSE;
|
||||||
|
|
||||||
/* ISRs can change FPU state, so disable interrupts while checking */
|
/* ISRs can change FPU state, so disable interrupts while checking */
|
||||||
_disable();
|
_disable();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue