Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/isa Remove fwait after fxsave.



details:   https://anonhg.NetBSD.org/src/rev/68d3cafcab8a
branches:  trunk
changeset: 520365:68d3cafcab8a
user:      toshii <toshii%NetBSD.org@localhost>
date:      Tue Jan 08 13:31:04 2002 +0000

description:
Remove fwait after fxsave.

Raising math exception from fpu_save causes machine reboots.
Also, this fwait would cause incorrect results, as pending exceptions
are to be handled later after fxrstor.

diffstat:

 sys/arch/i386/isa/npx.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r dfc584e181b2 -r 68d3cafcab8a sys/arch/i386/isa/npx.c
--- a/sys/arch/i386/isa/npx.c   Tue Jan 08 11:47:27 2002 +0000
+++ b/sys/arch/i386/isa/npx.c   Tue Jan 08 13:31:04 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: npx.c,v 1.82 2001/11/15 07:03:32 lukem Exp $   */
+/*     $NetBSD: npx.c,v 1.83 2002/01/08 13:31:04 toshii Exp $  */
 
 /*-
  * Copyright (c) 1994, 1995, 1998 Charles M. Hannum.  All rights reserved.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.82 2001/11/15 07:03:32 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: npx.c,v 1.83 2002/01/08 13:31:04 toshii Exp $");
 
 #if 0
 #define IPRINTF(x)     printf x
@@ -120,7 +120,6 @@
        if (i386_use_fxsave) {
                fxsave(&addr->sv_xmm);
                /* FXSAVE doesn't FNINIT like FNSAVE does -- so do it here. */
-               fwait();        /* XXX needed? */
                fninit();
        } else
 #endif /* I686_CPU */



Home | Main Index | Thread Index | Old Index