Set variable i386_fpu_present to 1 if a functional FPU was detected. For

later retrieval by sysctl.
This commit is contained in:
fvdl 1999-10-06 20:03:51 +00:00
parent a0ff6a4960
commit 7bae87cae4

View File

@ -1,4 +1,4 @@
/* $NetBSD: npx.c,v 1.69 1999/03/24 05:51:02 mrg Exp $ */
/* $NetBSD: npx.c,v 1.70 1999/10/06 20:03:51 fvdl Exp $ */
#if 0
#define IPRINTF(x) printf x
@ -138,6 +138,8 @@ static int npx_nointr;
volatile u_int npx_intrs_while_probing;
volatile u_int npx_traps_while_probing;
extern int i386_fpu_present;
static inline int
npxprobe1(ia)
struct isa_attach_args *ia;
@ -304,6 +306,7 @@ npxattach(parent, self, aux)
if (npx586bug1(4195835, 3145727) != 0)
printf("WARNING: Pentium FDIV bug detected!\n");
lcr0(rcr0() | (CR0_TS));
i386_fpu_present = 1;
}
/*