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:
parent
548b201607
commit
1a89ca4cf5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=246248
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user