mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
UefiCpuPkg/Mplib.c: Perform complete initialization when enable AP.
PI has description said If an AP is enabled, then the implementation must guarantee that a complete initialization sequence is performed on the AP, so the AP is in a state that is compatible with an MP operating system. Current implementation just set the AP to idle state when enable this AP which is not follow spec. This patch fix it. Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Ruiyu Ni <ruiyu.ni@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong <eric.dong@intel.com> Reviewed-by: Ruiyu Ni <ruiyu.ni@intel.com>
This commit is contained in:
parent
ea8314e440
commit
d5fdae96e2
@ -1814,7 +1814,7 @@ EnableDisableApWorker (
|
||||
if (!EnableAP) {
|
||||
SetApState (&CpuMpData->CpuData[ProcessorNumber], CpuStateDisabled);
|
||||
} else {
|
||||
SetApState (&CpuMpData->CpuData[ProcessorNumber], CpuStateIdle);
|
||||
ResetProcessorToIdleState (ProcessorNumber);
|
||||
}
|
||||
|
||||
if (HealthFlag != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user