Set up FPU state on the AP.
Tested by: phk
This commit is contained in:
parent
1389c7307f
commit
05385ecdf7
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user