summaryrefslogtreecommitdiffstats
path: root/sys/amd64
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2014-09-10 21:37:47 +0000
committerjhb <jhb@FreeBSD.org>2014-09-10 21:37:47 +0000
commitfa53fae9e4783e35e0dfe1b2a3b7c12c507ecc7a (patch)
tree096dcded9470e01dbdcbd5fc7b3a662dda064543 /sys/amd64
parent6f8d6cd57bddceacf4eae89310571ca78900e548 (diff)
downloadFreeBSD-src-fa53fae9e4783e35e0dfe1b2a3b7c12c507ecc7a.zip
FreeBSD-src-fa53fae9e4783e35e0dfe1b2a3b7c12c507ecc7a.tar.gz
MFamd64: Use initializecpu() to set various model-specific registers on
AP startup and AP resume (it was already used for BSP startup and BSP resume). - Split code to do one-time probing of cache properties out of initializecpu() and into initializecpucache(). This is called once on the BSP during boot. - Move enable_sse() into initializecpu(). - Call initializecpu() for AP startup instead of enable_sse() and manually frobbing MSR_EFER to enable PG_NX. - Call initializecpu() when an AP resumes. In theory this will now properly re-enable PG_NX in MSR_EFER when resuming a PAE kernel on APs.
Diffstat (limited to 'sys/amd64')
-rw-r--r--sys/amd64/amd64/mp_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index 15d3a7b..3184f13 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -721,7 +721,7 @@ init_secondary(void)
/* set up CPU registers and state */
cpu_setregs();
- /* set up SSE/NX registers */
+ /* set up SSE/NX */
initializecpu();
/* set up FPU state on the AP */
OpenPOWER on IntegriCloud