From 18154cd6f8c9df5254a25bfd4c64ba5b95025754 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 8 Jun 2004 01:07:51 +0000 Subject: [PATCH] Set up the fpu *after* enabling SSE mode on AP's Submitted by: (argh, I can't find the email) --- sys/amd64/amd64/mp_machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index 50e8b2c7ee1c..cf223b116aaf 100644 --- a/sys/amd64/amd64/mp_machdep.c +++ b/sys/amd64/amd64/mp_machdep.c @@ -429,12 +429,12 @@ init_secondary(void) /* set up CPU registers and state */ cpu_setregs(); - /* set up FPU state on the AP */ - fpuinit(); - /* set up SSE/NX registers */ initializecpu(); + /* set up FPU state on the AP */ + fpuinit(); + /* A quick check from sanity claus */ if (PCPU_GET(apic_id) != lapic_id()) { printf("SMP: cpuid = %d\n", PCPU_GET(cpuid));