EFI_STATUS\r
EFIAPI\r
MpInitLibGetNumberOfProcessors (\r
- OUT UINTN *NumberOfProcessors OPTIONAL,\r
- OUT UINTN *NumberOfEnabledProcessors OPTIONAL\r
+ OUT UINTN *NumberOfProcessors OPTIONAL,\r
+ OUT UINTN *NumberOfEnabledProcessors OPTIONAL\r
)\r
{\r
*NumberOfProcessors = 1;\r
if (ProcessorInfoBuffer == NULL) {\r
return EFI_INVALID_PARAMETER;\r
}\r
+\r
if (ProcessorNumber != 0) {\r
return EFI_NOT_FOUND;\r
}\r
- ProcessorInfoBuffer->ProcessorId = 0;\r
- ProcessorInfoBuffer->StatusFlag = PROCESSOR_AS_BSP_BIT |\r
- PROCESSOR_ENABLED_BIT |\r
- PROCESSOR_HEALTH_STATUS_BIT;\r
+\r
+ ProcessorInfoBuffer->ProcessorId = 0;\r
+ ProcessorInfoBuffer->StatusFlag = PROCESSOR_AS_BSP_BIT |\r
+ PROCESSOR_ENABLED_BIT |\r
+ PROCESSOR_HEALTH_STATUS_BIT;\r
ProcessorInfoBuffer->Location.Package = 0;\r
ProcessorInfoBuffer->Location.Core = 0;\r
ProcessorInfoBuffer->Location.Thread = 0;\r
GuidHob = GetFirstGuidHob (&gEfiSecPlatformInformationPpiGuid);\r
if (GuidHob != NULL) {\r
SecPlatformInformation = GET_GUID_HOB_DATA (GuidHob);\r
- HealthData->Uint32 = SecPlatformInformation->IA32HealthFlags.Uint32;\r
+ HealthData->Uint32 = SecPlatformInformation->IA32HealthFlags.Uint32;\r
} else {\r
DEBUG ((DEBUG_INFO, "Does not find any HOB stored CPU BIST information!\n"));\r
HealthData->Uint32 = 0;\r
}\r
}\r
+\r
return EFI_SUCCESS;\r
}\r
\r
EFI_STATUS\r
EFIAPI\r
MpInitLibStartupAllAPs (\r
- IN EFI_AP_PROCEDURE Procedure,\r
- IN BOOLEAN SingleThread,\r
- IN EFI_EVENT WaitEvent OPTIONAL,\r
- IN UINTN TimeoutInMicroseconds,\r
- IN VOID *ProcedureArgument OPTIONAL,\r
- OUT UINTN **FailedCpuList OPTIONAL\r
+ IN EFI_AP_PROCEDURE Procedure,\r
+ IN BOOLEAN SingleThread,\r
+ IN EFI_EVENT WaitEvent OPTIONAL,\r
+ IN UINTN TimeoutInMicroseconds,\r
+ IN VOID *ProcedureArgument OPTIONAL,\r
+ OUT UINTN **FailedCpuList OPTIONAL\r
)\r
{\r
return EFI_NOT_STARTED;\r
EFI_STATUS\r
EFIAPI\r
MpInitLibStartupThisAP (\r
- IN EFI_AP_PROCEDURE Procedure,\r
- IN UINTN ProcessorNumber,\r
- IN EFI_EVENT WaitEvent OPTIONAL,\r
- IN UINTN TimeoutInMicroseconds,\r
- IN VOID *ProcedureArgument OPTIONAL,\r
- OUT BOOLEAN *Finished OPTIONAL\r
+ IN EFI_AP_PROCEDURE Procedure,\r
+ IN UINTN ProcessorNumber,\r
+ IN EFI_EVENT WaitEvent OPTIONAL,\r
+ IN UINTN TimeoutInMicroseconds,\r
+ IN VOID *ProcedureArgument OPTIONAL,\r
+ OUT BOOLEAN *Finished OPTIONAL\r
)\r
{\r
return EFI_INVALID_PARAMETER;\r
EFI_STATUS\r
EFIAPI\r
MpInitLibSwitchBSP (\r
- IN UINTN ProcessorNumber,\r
- IN BOOLEAN EnableOldBSP\r
+ IN UINTN ProcessorNumber,\r
+ IN BOOLEAN EnableOldBSP\r
)\r
{\r
return EFI_UNSUPPORTED;\r
EFI_STATUS\r
EFIAPI\r
MpInitLibEnableDisableAP (\r
- IN UINTN ProcessorNumber,\r
- IN BOOLEAN EnableAP,\r
- IN UINT32 *HealthFlag OPTIONAL\r
+ IN UINTN ProcessorNumber,\r
+ IN BOOLEAN EnableAP,\r
+ IN UINT32 *HealthFlag OPTIONAL\r
)\r
{\r
return EFI_UNSUPPORTED;\r
EFI_STATUS\r
EFIAPI\r
MpInitLibWhoAmI (\r
- OUT UINTN *ProcessorNumber\r
+ OUT UINTN *ProcessorNumber\r
)\r
{\r
if (ProcessorNumber == NULL) {\r
return EFI_INVALID_PARAMETER;\r
}\r
+\r
*ProcessorNumber = 0;\r
return EFI_SUCCESS;\r
}\r
EFI_STATUS\r
EFIAPI\r
MpInitLibStartupAllCPUs (\r
- IN EFI_AP_PROCEDURE Procedure,\r
- IN UINTN TimeoutInMicroseconds,\r
- IN VOID *ProcedureArgument OPTIONAL\r
+ IN EFI_AP_PROCEDURE Procedure,\r
+ IN UINTN TimeoutInMicroseconds,\r
+ IN VOID *ProcedureArgument OPTIONAL\r
)\r
{\r
if (Procedure == NULL) {\r