summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-06-06 09:16:02 +0000
committerdas <das@FreeBSD.org>2004-06-06 09:16:02 +0000
commit51a41f503fced5d9979f081e6b9fee419291a124 (patch)
tree82d51a8a105cb2e4ef639d94a940f8447f1991b0 /sys/amd64
parent10d56ec8c299cb08944134aa4cfd37b30f4dce6b (diff)
downloadFreeBSD-src-51a41f503fced5d9979f081e6b9fee419291a124.zip
FreeBSD-src-51a41f503fced5d9979f081e6b9fee419291a124.tar.gz
Back out revision 1.150, since dwmalone reports that it causes a panic
upon startup on his machine.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/fpu.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/amd64/amd64/fpu.c b/sys/amd64/amd64/fpu.c
index d002ef0..34af7ae 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;
OpenPOWER on IntegriCloud