1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

- 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:
John Baldwin 2001-10-24 17:38:40 +00:00
parent e41febc84b
commit c5ca5a55a1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85419
2 changed files with 14 additions and 6 deletions

View File

@ -286,10 +286,14 @@ trap(frame)
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
if (i == -2) {
/*
* f00f hack workaround has triggered, treat
* as illegal instruction not page fault.
* The f00f hack workaround has triggered, so
* 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;
break;
}

View File

@ -286,10 +286,14 @@ trap(frame)
#if defined(I586_CPU) && !defined(NO_F00F_HACK)
if (i == -2) {
/*
* f00f hack workaround has triggered, treat
* as illegal instruction not page fault.
* The f00f hack workaround has triggered, so
* 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;
break;
}