diff options
author | Joshua Elsasser <joshe@cvs.openbsd.org> | 2010-09-29 15:11:32 +0000 |
---|---|---|
committer | Joshua Elsasser <joshe@cvs.openbsd.org> | 2010-09-29 15:11:32 +0000 |
commit | 28c539049532b2872c8827df35e33ad7089977f0 (patch) | |
tree | 8f62f80370e8dfa33597263c2ed9904012b3182f /sys/arch/i386/isa | |
parent | f26ef5b606ca0789d6e460ed12f5965ce29c596c (diff) |
Back out previous, it appears to be broken.
Diffstat (limited to 'sys/arch/i386/isa')
-rw-r--r-- | sys/arch/i386/isa/npx.c | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/sys/arch/i386/isa/npx.c b/sys/arch/i386/isa/npx.c index f7a45535f91..ade5e5872f2 100644 --- a/sys/arch/i386/isa/npx.c +++ b/sys/arch/i386/isa/npx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npx.c,v 1.52 2010/09/29 13:46:38 joshe Exp $ */ +/* $OpenBSD: npx.c,v 1.53 2010/09/29 15:11:31 joshe Exp $ */ /* $NetBSD: npx.c,v 1.57 1996/05/12 23:12:24 mycroft Exp $ */ #if 0 @@ -97,11 +97,6 @@ #define clts() __asm("clts") #define stts() lcr0(rcr0() | CR0_TS) -/* - * The mxcsr_mask for this host, taken from fxsave() on the primary CPU - */ -uint32_t fpu_mxcsr_mask; - int npxintr(void *); static int npxprobe1(struct isa_attach_args *); static int x86fpflags_to_siginfo(u_int32_t); @@ -356,16 +351,6 @@ npxinit(struct cpu_info *ci) printf("%s: WARNING: Pentium FDIV bug detected!\n", ci->ci_dev.dv_xname); } - if (CPU_IS_PRIMARY(ci) && i386_use_fxsave) { - struct savexmm xm __attribute__((aligned(16))); - - bzero(&xm, sizeof(xm)); - fxsave(&xm); - if (xm.sv_env.en_mxcsr_mask) - fpu_mxcsr_mask = xm.sv_env.en_mxcsr_mask; - else - fpu_mxcsr_mask = __INITIAL_MXCSR_MASK__; - } lcr0(rcr0() | (CR0_TS)); } |