aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1999-09-05 20:17:40 +0000
committerPeter Wemm <peter@FreeBSD.org>1999-09-05 20:17:40 +0000
commit05385ecdf7868f5f56115cd1f231b4bfaf18a635 (patch)
tree474975a9673571cdf3000c0e893ae5d8563c0892
parent1389c7307f2114ba2f8491ace07851a6872d14be (diff)
Notes
-rw-r--r--sys/amd64/amd64/mp_machdep.c4
-rw-r--r--sys/amd64/amd64/mptable.c4
-rw-r--r--sys/amd64/include/mptable.h4
-rw-r--r--sys/i386/i386/mp_machdep.c4
-rw-r--r--sys/i386/i386/mptable.c4
-rw-r--r--sys/i386/include/mptable.h4
-rw-r--r--sys/kern/subr_smp.c4
7 files changed, 28 insertions, 0 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index 283ed1701a3c..3711b371c90c 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -72,6 +72,7 @@
#include <machine/tss.h>
#include <machine/specialreg.h>
#include <machine/cputypes.h>
+#include <machine/cputypes.h>
#include <machine/globaldata.h>
#if defined(APIC_IO)
@@ -2189,6 +2190,9 @@ ap_init()
/* XXX FIXME: i386 specific, and redundant: Setup the FPU. */
load_cr0((rcr0() & ~CR0_EM) | CR0_MP | CR0_NE | CR0_TS);
+ /* set up FPU state on the AP */
+ npxinit(__INITIAL_NPXCW__);
+
/* A quick check from sanity claus */
apic_id = (apic_id_to_logical[(lapic.id & 0x0f000000) >> 24]);
if (cpuid != apic_id) {
diff --git a/sys/amd64/amd64/mptable.c b/sys/amd64/amd64/mptable.c
index 283ed1701a3c..3711b371c90c 100644
--- a/sys/amd64/amd64/mptable.c
+++ b/sys/amd64/amd64/mptable.c
@@ -72,6 +72,7 @@
#include <machine/tss.h>
#include <machine/specialreg.h>
#include <machine/cputypes.h>
+#include <machine/cputypes.h>
#include <machine/globaldata.h>
#if defined(APIC_IO)
@@ -2189,6 +2190,9 @@ ap_init()
/* XXX FIXME: i386 specific, and redundant: Setup the FPU. */
load_cr0((rcr0() & ~CR0_EM) | CR0_MP | CR0_NE | CR0_TS);
+ /* set up FPU state on the AP */
+ npxinit(__INITIAL_NPXCW__);
+
/* A quick check from sanity claus */
apic_id = (apic_id_to_logical[(lapic.id & 0x0f000000) >> 24]);
if (cpuid != apic_id) {
diff --git a/sys/amd64/include/mptable.h b/sys/amd64/include/mptable.h
index 283ed1701a3c..3711b371c90c 100644
--- a/sys/amd64/include/mptable.h
+++ b/sys/amd64/include/mptable.h
@@ -72,6 +72,7 @@
#include <machine/tss.h>
#include <machine/specialreg.h>
#include <machine/cputypes.h>
+#include <machine/cputypes.h>
#include <machine/globaldata.h>
#if defined(APIC_IO)
@@ -2189,6 +2190,9 @@ ap_init()
/* XXX FIXME: i386 specific, and redundant: Setup the FPU. */
load_cr0((rcr0() & ~CR0_EM) | CR0_MP | CR0_NE | CR0_TS);
+ /* set up FPU state on the AP */
+ npxinit(__INITIAL_NPXCW__);
+
/* A quick check from sanity claus */
apic_id = (apic_id_to_logical[(lapic.id & 0x0f000000) >> 24]);
if (cpuid != apic_id) {
diff --git a/sys/i386/i386/mp_machdep.c b/sys/i386/i386/mp_machdep.c
index 283ed1701a3c..3711b371c90c 100644
--- a/sys/i386/i386/mp_machdep.c
+++ b/sys/i386/i386/mp_machdep.c
@@ -72,6 +72,7 @@
#include <machine/tss.h>
#include <machine/specialreg.h>
#include <machine/cputypes.h>
+#include <machine/cputypes.h>
#include <machine/globaldata.h>
#if defined(APIC_IO)
@@ -2189,6 +2190,9 @@ ap_init()
/* XXX FIXME: i386 specific, and redundant: Setup the FPU. */
load_cr0((rcr0() & ~CR0_EM) | CR0_MP | CR0_NE | CR0_TS);
+ /* set up FPU state on the AP */
+ npxinit(__INITIAL_NPXCW__);
+
/* A quick check from sanity claus */
apic_id = (apic_id_to_logical[(lapic.id & 0x0f000000) >> 24]);
if (cpuid != apic_id) {
diff --git a/sys/i386/i386/mptable.c b/sys/i386/i386/mptable.c
index 283ed1701a3c..3711b371c90c 100644
--- a/sys/i386/i386/mptable.c
+++ b/sys/i386/i386/mptable.c
@@ -72,6 +72,7 @@
#include <machine/tss.h>
#include <machine/specialreg.h>
#include <machine/cputypes.h>
+#include <machine/cputypes.h>
#include <machine/globaldata.h>
#if defined(APIC_IO)
@@ -2189,6 +2190,9 @@ ap_init()
/* XXX FIXME: i386 specific, and redundant: Setup the FPU. */
load_cr0((rcr0() & ~CR0_EM) | CR0_MP | CR0_NE | CR0_TS);
+ /* set up FPU state on the AP */
+ npxinit(__INITIAL_NPXCW__);
+
/* A quick check from sanity claus */
apic_id = (apic_id_to_logical[(lapic.id & 0x0f000000) >> 24]);
if (cpuid != apic_id) {
diff --git a/sys/i386/include/mptable.h b/sys/i386/include/mptable.h
index 283ed1701a3c..3711b371c90c 100644
--- a/sys/i386/include/mptable.h
+++ b/sys/i386/include/mptable.h
@@ -72,6 +72,7 @@
#include <machine/tss.h>
#include <machine/specialreg.h>
#include <machine/cputypes.h>
+#include <machine/cputypes.h>
#include <machine/globaldata.h>
#if defined(APIC_IO)
@@ -2189,6 +2190,9 @@ ap_init()
/* XXX FIXME: i386 specific, and redundant: Setup the FPU. */
load_cr0((rcr0() & ~CR0_EM) | CR0_MP | CR0_NE | CR0_TS);
+ /* set up FPU state on the AP */
+ npxinit(__INITIAL_NPXCW__);
+
/* A quick check from sanity claus */
apic_id = (apic_id_to_logical[(lapic.id & 0x0f000000) >> 24]);
if (cpuid != apic_id) {
diff --git a/sys/kern/subr_smp.c b/sys/kern/subr_smp.c
index 283ed1701a3c..3711b371c90c 100644
--- a/sys/kern/subr_smp.c
+++ b/sys/kern/subr_smp.c
@@ -72,6 +72,7 @@
#include <machine/tss.h>
#include <machine/specialreg.h>
#include <machine/cputypes.h>
+#include <machine/cputypes.h>
#include <machine/globaldata.h>
#if defined(APIC_IO)
@@ -2189,6 +2190,9 @@ ap_init()
/* XXX FIXME: i386 specific, and redundant: Setup the FPU. */
load_cr0((rcr0() & ~CR0_EM) | CR0_MP | CR0_NE | CR0_TS);
+ /* set up FPU state on the AP */
+ npxinit(__INITIAL_NPXCW__);
+
/* A quick check from sanity claus */
apic_id = (apic_id_to_logical[(lapic.id & 0x0f000000) >> 24]);
if (cpuid != apic_id) {