cpususpend_handler: mark AP as resumed only after fully setting up lapic

Reviewed by:	jhb
Tested by:	Sergey V. Dyatko <sergey.dyatko@gmail.com>,
		KAHO Toshikazu <kaho@elam.kais.kyoto-u.ac.jp>
MFC after:	12 days
This commit is contained in:
Andriy Gapon 2013-02-02 12:04:32 +00:00
parent 548b201607
commit 1a89ca4cf5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246248
2 changed files with 4 additions and 4 deletions

View File

@ -1431,11 +1431,11 @@ cpususpend_handler(void)
while (!CPU_ISSET(cpu, &started_cpus))
ia32_pause();
CPU_CLR_ATOMIC(cpu, &started_cpus);
/* Resume MCA and local APIC */
mca_resume();
lapic_setup(0);
CPU_CLR_ATOMIC(cpu, &started_cpus);
}
/*

View File

@ -1528,11 +1528,11 @@ cpususpend_handler(void)
while (!CPU_ISSET(cpu, &started_cpus))
ia32_pause();
CPU_CLR_ATOMIC(cpu, &started_cpus);
/* Resume MCA and local APIC */
mca_resume();
lapic_setup(0);
CPU_CLR_ATOMIC(cpu, &started_cpus);
}
/*
* This is called once the rest of the system is up and running and we're