- Clean up the comments slightly here to make them more readable.
- Set the type and trapframe number for the F00F workaround since type can be used later by sv_transtrap(). Debuggers might also want to look at the type in the trapframe. Submitted by: bde (mostly)
This commit is contained in:
parent
e41febc84b
commit
c5ca5a55a1
@ -286,10 +286,14 @@ trap(frame)
|
|||||||
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
|
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
|
||||||
if (i == -2) {
|
if (i == -2) {
|
||||||
/*
|
/*
|
||||||
* f00f hack workaround has triggered, treat
|
* The f00f hack workaround has triggered, so
|
||||||
* as illegal instruction not page fault.
|
* treat the fault as an illegal instruction
|
||||||
|
* (T_PRIVINFLT) instead of a page fault.
|
||||||
*/
|
*/
|
||||||
ucode = T_PRIVINFLT;
|
type = frame.tf_trapno = T_PRIVINFLT;
|
||||||
|
|
||||||
|
/* Proceed as in that case. */
|
||||||
|
ucode = type;
|
||||||
i = SIGILL;
|
i = SIGILL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -286,10 +286,14 @@ trap(frame)
|
|||||||
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
|
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
|
||||||
if (i == -2) {
|
if (i == -2) {
|
||||||
/*
|
/*
|
||||||
* f00f hack workaround has triggered, treat
|
* The f00f hack workaround has triggered, so
|
||||||
* as illegal instruction not page fault.
|
* treat the fault as an illegal instruction
|
||||||
|
* (T_PRIVINFLT) instead of a page fault.
|
||||||
*/
|
*/
|
||||||
ucode = T_PRIVINFLT;
|
type = frame.tf_trapno = T_PRIVINFLT;
|
||||||
|
|
||||||
|
/* Proceed as in that case. */
|
||||||
|
ucode = type;
|
||||||
i = SIGILL;
|
i = SIGILL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user