summaryrefslogtreecommitdiffstats
path: root/sys/amd64/amd64/mp_machdep.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2015-02-16 21:56:19 +0000
committerkib <kib@FreeBSD.org>2015-02-16 21:56:19 +0000
commit7a89c3df60c118e7db4f53fb2e76d3775e0d3097 (patch)
tree163f584d88408adb3a7b1e627db29a6e013208c6 /sys/amd64/amd64/mp_machdep.c
parent16f1b2f354a4bd6baf5198f2e5665062dd993c1f (diff)
downloadFreeBSD-src-7a89c3df60c118e7db4f53fb2e76d3775e0d3097.zip
FreeBSD-src-7a89c3df60c118e7db4f53fb2e76d3775e0d3097.tar.gz
Initialize x2APIC mode on the resume path before accessing LAPIC.
Remove unneeded disable of LAPIC in the native_lapic_xapic_mode(). We attempt to send wakeup IPI on the resume path right after BSP wakeup, so disabling is wrong. Reported and tested by: glebius, "Ranjan1018 ." <214748mv@gmail.com> Sponsored by: The FreeBSD Foundation MFC after: 2 months
Diffstat (limited to 'sys/amd64/amd64/mp_machdep.c')
-rw-r--r--sys/amd64/amd64/mp_machdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/amd64/amd64/mp_machdep.c b/sys/amd64/amd64/mp_machdep.c
index 13c3d43..b767691 100644
--- a/sys/amd64/amd64/mp_machdep.c
+++ b/sys/amd64/amd64/mp_machdep.c
@@ -1507,6 +1507,7 @@ cpususpend_handler(void)
vmm_resume_p();
/* Resume MCA and local APIC */
+ lapic_xapic_mode();
mca_resume();
lapic_setup(0);
OpenPOWER on IntegriCloud