19volatile BOOLEAN mStopCheckAllApsStatus =
TRUE;
46 ASSERT (mCpuMpData !=
NULL);
60 mCpuMpData = CpuMpData;
92 UINTN ProcessorNumber;
101 if (CpuMpData->WaitEvent !=
NULL) {
106 if (Status != EFI_NOT_READY) {
107 Status =
gBS->SignalEvent (CpuMpData->WaitEvent);
108 CpuMpData->WaitEvent =
NULL;
115 for (ProcessorNumber = 0; ProcessorNumber < CpuMpData->CpuCount; ProcessorNumber++) {
116 if (CpuMpData->CpuData[ProcessorNumber].WaitEvent ==
NULL) {
122 if (Status != EFI_NOT_READY) {
123 gBS->SignalEvent (CpuMpData->CpuData[ProcessorNumber].WaitEvent);
124 CpuMpData->CpuData[ProcessorNumber].WaitEvent =
NULL;
150 if (!mStopCheckAllApsStatus) {
169 Status =
gBS->CreateEvent (
170 EVT_TIMER | EVT_NOTIFY_SIGNAL,
181 Status =
gBS->SetTimer (
185 PcdGet32 (PcdCpuApStatusCheckIntervalInMicroSeconds)
270 IN BOOLEAN SingleThread,
272 IN UINTN TimeoutInMicroseconds,
273 IN VOID *ProcedureArgument OPTIONAL,
282 mStopCheckAllApsStatus =
TRUE;
289 TimeoutInMicroseconds,
297 mStopCheckAllApsStatus =
FALSE;
379 IN UINTN TimeoutInMicroseconds,
380 IN VOID *ProcedureArgument OPTIONAL,
381 OUT BOOLEAN *Finished OPTIONAL
389 mStopCheckAllApsStatus =
TRUE;
395 TimeoutInMicroseconds,
400 mStopCheckAllApsStatus =
FALSE;
435 IN BOOLEAN EnableOldBSP
438 return EFI_UNSUPPORTED;
476 IN UINT32 *HealthFlag OPTIONAL
479 return EFI_UNSUPPORTED;
VOID EFIAPI InitializeDebugAgent(IN UINT32 InitFlag, IN VOID *Context OPTIONAL, IN DEBUG_AGENT_CONTINUE Function OPTIONAL)
EFI_STATUS EFIAPI MpInitLibEnableDisableAP(IN UINTN ProcessorNumber, IN BOOLEAN EnableAP, IN UINT32 *HealthFlag OPTIONAL)
EFI_STATUS EFIAPI MpInitLibStartupAllAPs(IN EFI_AP_PROCEDURE Procedure, IN BOOLEAN SingleThread, IN EFI_EVENT WaitEvent OPTIONAL, IN UINTN TimeoutInMicroseconds, IN VOID *ProcedureArgument OPTIONAL, OUT UINTN **FailedCpuList OPTIONAL)
VOID CheckAndUpdateApsStatus(VOID)
EFI_STATUS EFIAPI MpInitLibSwitchBSP(IN UINTN ProcessorNumber, IN BOOLEAN EnableOldBSP)
VOID EFIAPI CheckApsStatus(IN EFI_EVENT Event, IN VOID *Context)
CPU_MP_DATA * GetCpuMpData(VOID)
VOID InitMpGlobalData(IN CPU_MP_DATA *CpuMpData)
VOID EnableDebugAgent(VOID)
EFI_STATUS EFIAPI MpInitLibStartupThisAP(IN EFI_AP_PROCEDURE Procedure, IN UINTN ProcessorNumber, IN EFI_EVENT WaitEvent OPTIONAL, IN UINTN TimeoutInMicroseconds, IN VOID *ProcedureArgument OPTIONAL, OUT BOOLEAN *Finished OPTIONAL)
VOID SaveCpuMpData(IN CPU_MP_DATA *CpuMpData)
UINTN GetModeTransitionBuffer(IN UINTN BufferSize)
EFI_STATUS StartupThisAPWorker(IN EFI_AP_PROCEDURE Procedure, IN UINTN ProcessorNumber, IN EFI_EVENT WaitEvent OPTIONAL, IN UINTN TimeoutInMicroseconds, IN VOID *ProcedureArgument OPTIONAL, OUT BOOLEAN *Finished OPTIONAL)
EFI_STATUS StartupAllCPUsWorker(IN EFI_AP_PROCEDURE Procedure, IN BOOLEAN SingleThread, IN BOOLEAN ExcludeBsp, IN EFI_EVENT WaitEvent OPTIONAL, IN UINTN TimeoutInMicroseconds, IN VOID *ProcedureArgument OPTIONAL, OUT UINTN **FailedCpuList OPTIONAL)
EFI_STATUS CheckThisAP(IN UINTN ProcessorNumber)
EFI_STATUS CheckAllAPs(VOID)
#define ASSERT_EFI_ERROR(StatusParameter)
#define PcdGet32(TokenName)
VOID(EFIAPI * EFI_AP_PROCEDURE)(IN OUT VOID *Buffer)
#define EFI_TIMER_PERIOD_MICROSECONDS(Microseconds)