mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/DxeMpLib: Get safe AP loop handler from global variable
AP loop function is already saved into global variable, needn't to get it from AP function parameter. Cc: Laszlo Ersek <lersek@redhat.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
4575a602ca
commit
081f6416ff
|
@ -244,7 +244,7 @@ RelocateApLoop (
|
||||||
|
|
||||||
CpuMpData = GetCpuMpData ();
|
CpuMpData = GetCpuMpData ();
|
||||||
MwaitSupport = IsMwaitSupport ();
|
MwaitSupport = IsMwaitSupport ();
|
||||||
AsmRelocateApLoopFunc = (ASM_RELOCATE_AP_LOOP) (UINTN) Buffer;
|
AsmRelocateApLoopFunc = (ASM_RELOCATE_AP_LOOP) (UINTN) mReservedApLoopFunc;
|
||||||
AsmRelocateApLoopFunc (MwaitSupport, CpuMpData->ApTargetCState, CpuMpData->PmCodeSegment);
|
AsmRelocateApLoopFunc (MwaitSupport, CpuMpData->ApTargetCState, CpuMpData->PmCodeSegment);
|
||||||
//
|
//
|
||||||
// It should never reach here
|
// It should never reach here
|
||||||
|
@ -273,7 +273,7 @@ MpInitChangeApLoopCallback (
|
||||||
CpuMpData->SaveRestoreFlag = TRUE;
|
CpuMpData->SaveRestoreFlag = TRUE;
|
||||||
CpuMpData->PmCodeSegment = GetProtectedModeCS ();
|
CpuMpData->PmCodeSegment = GetProtectedModeCS ();
|
||||||
CpuMpData->ApLoopMode = PcdGet8 (PcdCpuApLoopMode);
|
CpuMpData->ApLoopMode = PcdGet8 (PcdCpuApLoopMode);
|
||||||
WakeUpAP (CpuMpData, TRUE, 0, RelocateApLoop, mReservedApLoopFunc);
|
WakeUpAP (CpuMpData, TRUE, 0, RelocateApLoop, NULL);
|
||||||
DEBUG ((DEBUG_INFO, "%a() done!\n", __FUNCTION__));
|
DEBUG ((DEBUG_INFO, "%a() done!\n", __FUNCTION__));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue