mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 11:31:54 +00:00
[FAST486]
Don't forget to check for gates in 16-bit protected mode too. svn path=/trunk/; revision=67596
This commit is contained in:
parent
1522bf4fc0
commit
d28f0fd901
1 changed files with 18 additions and 0 deletions
|
@ -1629,6 +1629,15 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeGroupFF)
|
|||
return;
|
||||
}
|
||||
|
||||
if (State->ControlRegisters[FAST486_REG_CR0] & FAST486_CR0_PE)
|
||||
{
|
||||
if (!Fast486ProcessGate(State, Selector, Value, FALSE))
|
||||
{
|
||||
/* Gate processed or exception occurred */
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Push the current value of CS */
|
||||
if (!Fast486StackPush(State, State->SegmentRegs[FAST486_REG_CS].Selector))
|
||||
{
|
||||
|
@ -1688,6 +1697,15 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeGroupFF)
|
|||
return;
|
||||
}
|
||||
|
||||
if (State->ControlRegisters[FAST486_REG_CR0] & FAST486_CR0_PE)
|
||||
{
|
||||
if (!Fast486ProcessGate(State, Selector, Value, FALSE))
|
||||
{
|
||||
/* Gate processed or exception occurred */
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Load the new code segment */
|
||||
if (!Fast486LoadSegment(State, FAST486_REG_CS, Selector))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue