Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/sys/arch/i386/isa Pull up revision 1.74 (requested by f...
details: https://anonhg.NetBSD.org/src/rev/abc6d463d6d5
branches: netbsd-1-5
changeset: 490976:abc6d463d6d5
user: he <he%NetBSD.org@localhost>
date: Fri Mar 30 21:32:17 2001 +0000
description:
Pull up revision 1.74 (requested by fvdl):
Add some required Linux emulation bits to support the Linux
version of VMware.
diffstat:
sys/arch/i386/isa/npx.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (40 lines):
diff -r 9708bb1fd307 -r abc6d463d6d5 sys/arch/i386/isa/npx.c
--- a/sys/arch/i386/isa/npx.c Fri Mar 30 21:31:48 2001 +0000
+++ b/sys/arch/i386/isa/npx.c Fri Mar 30 21:32:17 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: npx.c,v 1.72 2000/06/16 03:47:24 thorpej Exp $ */
+/* $NetBSD: npx.c,v 1.72.2.1 2001/03/30 21:32:17 he Exp $ */
#if 0
#define IPRINTF(x) printf x
@@ -119,7 +119,9 @@
volatile u_int npx_intrs_while_probing;
volatile u_int npx_traps_while_probing;
-extern int i386_fpu_present;
+extern int i386_fpu_present;
+extern int i386_fpu_exception;
+extern int i386_fpu_fdivbug;
struct npx_softc *npx_softc; /* XXXSMP: per-cpu */
@@ -195,6 +197,7 @@
* Good, exception 16 works.
*/
rv = NPX_EXCEPTION;
+ i386_fpu_exception = 1;
} else if (npx_intrs_while_probing != 0) {
/*
* Bad, we are stuck with IRQ13.
@@ -233,8 +236,10 @@
lcr0(rcr0() & ~(CR0_EM|CR0_TS));
fninit();
- if (npx586bug1(4195835, 3145727) != 0)
+ if (npx586bug1(4195835, 3145727) != 0) {
+ i386_fpu_fdivbug = 1;
printf("WARNING: Pentium FDIV bug detected!\n");
+ }
lcr0(rcr0() | (CR0_TS));
i386_fpu_present = 1;
}
Home |
Main Index |
Thread Index |
Old Index