diff options
author | peter <peter@FreeBSD.org> | 2004-06-08 01:07:51 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2004-06-08 01:07:51 +0000 |
commit | 5cebad93ca810e4c0b6aab8d1088e069c6390ed9 (patch) | |
tree | 4b518f7cba59e455a8ed75db4c7136593c2bf32d /sys | |
parent | 35d8561b4c4fdd818bacce23bc56f142116331dc (diff) | |
download | FreeBSD-src-5cebad93ca810e4c0b6aab8d1088e069c6390ed9.zip FreeBSD-src-5cebad93ca810e4c0b6aab8d1088e069c6390ed9.tar.gz |
Set up the fpu *after* enabling SSE mode on AP's
Submitted by: (argh, I can't find the email)
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/mp_machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c index 50e8b2c..cf223b1 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)); |