[FAST486]

The VM flag must be cleared before loading the new stack segment on a return
from v86 mode.


svn path=/trunk/; revision=68107
This commit is contained in:
Aleksandar Andrejevic 2015-06-11 21:52:46 +00:00
parent ad577755ca
commit 4269196da9

View file

@ -339,6 +339,9 @@ Fast486InterruptInternal(PFAST486_STATE State,
/* Switch to the new privilege level */
State->Cpl = GET_SEGMENT_RPL(IdtEntry->Selector);
/* Clear the VM flag */
State->Flags.Vm = FALSE;
/* Check the new (higher) privilege level */
switch (State->Cpl)
{
@ -404,12 +407,6 @@ Fast486InterruptInternal(PFAST486_STATE State,
}
State->GeneralRegs[FAST486_REG_ESP].Long = NewEsp;
if (State->Flags.Vm)
{
/* Clear the VM flag */
State->Flags.Vm = FALSE;
}
}
/* Load new CS */