mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00:00
[FAST486]
Fix a bug in the IRET instruction. svn path=/branches/ntvdm/; revision=60817
This commit is contained in:
parent
90d7fbd4a8
commit
13b771ac15
1 changed files with 2 additions and 2 deletions
|
@ -4613,7 +4613,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeInt)
|
||||||
|
|
||||||
FAST486_OPCODE_HANDLER(Fast486OpcodeIret)
|
FAST486_OPCODE_HANDLER(Fast486OpcodeIret)
|
||||||
{
|
{
|
||||||
USHORT i;
|
FAST486_SEG_REGS i;
|
||||||
ULONG InstPtr, CodeSel, StackPtr, StackSel;
|
ULONG InstPtr, CodeSel, StackPtr, StackSel;
|
||||||
FAST486_FLAGS_REG NewFlags;
|
FAST486_FLAGS_REG NewFlags;
|
||||||
BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size;
|
BOOLEAN Size = State->SegmentRegs[FAST486_REG_CS].Size;
|
||||||
|
@ -4777,7 +4777,7 @@ FAST486_OPCODE_HANDLER(Fast486OpcodeIret)
|
||||||
Cpl = Fast486GetCurrentPrivLevel(State);
|
Cpl = Fast486GetCurrentPrivLevel(State);
|
||||||
|
|
||||||
/* Check segment security */
|
/* Check segment security */
|
||||||
for (i = 0; i <= FAST486_NUM_SEG_REGS; i++)
|
for (i = 0; i < FAST486_NUM_SEG_REGS; i++)
|
||||||
{
|
{
|
||||||
/* Don't check CS or SS */
|
/* Don't check CS or SS */
|
||||||
if ((i == FAST486_REG_CS) || (i == FAST486_REG_SS)) continue;
|
if ((i == FAST486_REG_CS) || (i == FAST486_REG_SS)) continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue