Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Oct 2001 10:57:18 -0700 (PDT)
From:      John Baldwin <jhb@FreeBSD.org>
To:        current@FreeBSD.org
Subject:   Test tweak for F00F bug..
Message-ID:  <XFMail.011023105718.jhb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
Anyone running -current on a true Pentium with the F00F bug that can verify
that this simple cleanup patch works?

http://www.freebsd.org/~jhb/patches/f00f.patch

Index: trap.c
===================================================================
RCS file: /usr/cvs/src/sys/i386/i386/trap.c,v
retrieving revision 1.204
diff -u -r1.204 trap.c
--- trap.c      11 Oct 2001 18:25:57 -0000      1.204
+++ trap.c      20 Oct 2001 02:25:09 -0000
@@ -214,11 +214,6 @@
        }
 
        eva = 0;
-
-#if defined(I586_CPU) && !defined(NO_F00F_HACK)
-restart:
-#endif
-
        type = frame.tf_trapno;
        code = frame.tf_err;
 
@@ -294,8 +289,9 @@
                                 * f00f hack workaround has triggered, treat
                                 * as illegal instruction not page fault.
                                 */
-                               frame.tf_trapno = T_PRIVINFLT;
-                               goto restart;
+                               ucode = T_PRIVINFLT;
+                               i = SIGILL;
+                               break;
                        }
 #endif
                        if (i == -1)

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.011023105718.jhb>