mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 01:15:09 +00:00
[NTOS]: Fix bug in illegal instruction trap handling. Patch by Timo Kreuzer <physicus@reactos.org>.
svn path=/trunk/; revision=45065
This commit is contained in:
parent
03b23a2450
commit
0206768d44
1 changed files with 11 additions and 7 deletions
|
@ -1084,19 +1084,23 @@ KiTrap0DHandler(IN PKTRAP_FRAME TrapFrame,
|
|||
/* Skip prefix instructions */
|
||||
for (j = 0; j < sizeof(KiTrapPrefixTable); j++)
|
||||
{
|
||||
/* Is this NOT a prefix instruction? */
|
||||
if (Instructions[i] != KiTrapPrefixTable[j])
|
||||
/* Is this a prefix instruction? */
|
||||
if (Instructions[i] == KiTrapPrefixTable[j])
|
||||
{
|
||||
/* We can go ahead and handle the fault now */
|
||||
Instruction = Instructions[i];
|
||||
/* Stop looking */
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Do we need to keep looking? */
|
||||
if (Instruction) break;
|
||||
/* Is this NOT any prefix instruction? */
|
||||
if (Instructions[i] != KiTrapPrefixTable[j])
|
||||
{
|
||||
/* We can go ahead and handle the fault now */
|
||||
Instruction = Instructions[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* If all we found was prefixes, then this instruction is too long */
|
||||
if (!Instruction)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue