From 8c2267ec9a6ece9fd21ceda68d3a7598169872a8 Mon Sep 17 00:00:00 2001 From: David Schultz Date: Sun, 6 Jun 2004 09:16:02 +0000 Subject: [PATCH] Back out revision 1.150, since dwmalone reports that it causes a panic upon startup on his machine. --- sys/amd64/amd64/fpu.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c index d002ef0b6e65..34af7ae995c4 100644 --- a/sys/amd64/amd64/fpu.c +++ b/sys/amd64/amd64/fpu.c @@ -73,7 +73,6 @@ __FBSDID("$FreeBSD$"); #define fnstsw(addr) __asm __volatile("fnstsw %0" : "=m" (*(addr))) #define fxrstor(addr) __asm("fxrstor %0" : : "m" (*(addr))) #define fxsave(addr) __asm __volatile("fxsave %0" : "=m" (*(addr))) -#define ldmxcsr(r) __asm __volatile("ldmxcsr %0" : : "m" (r)) #define start_emulating() __asm("smsw %%ax; orb %0,%%al; lmsw %%ax" \ : : "n" (CR0_TS) : "ax") #define stop_emulating() __asm("clts") @@ -112,7 +111,6 @@ void fpuinit(void) { register_t savecrit; - u_int mxcsr; u_short control; savecrit = intr_disable(); @@ -121,8 +119,6 @@ fpuinit(void) fninit(); control = __INITIAL_FPUCW__; fldcw(&control); - mxcsr = __INITIAL_MXCSR__; - ldmxcsr(mxcsr); fxsave(&fpu_cleanstate); start_emulating(); fpu_cleanstate_ready = 1;