TianoCore EDK2 master
Loading...
Searching...
No Matches
CpuMp2Pei.c
Go to the documentation of this file.
1
9#include "CpuMpPei.h"
10
44EFIAPI
47 OUT UINTN *NumberOfProcessors,
48 OUT UINTN *NumberOfEnabledProcessors
49 )
50{
51 if ((NumberOfProcessors == NULL) || (NumberOfEnabledProcessors == NULL)) {
52 return EFI_INVALID_PARAMETER;
53 }
54
56 NumberOfProcessors,
57 NumberOfEnabledProcessors
58 );
59}
60
86EFIAPI
89 IN UINTN ProcessorNumber,
90 OUT EFI_PROCESSOR_INFORMATION *ProcessorInfoBuffer
91 )
92{
93 return MpInitLibGetProcessorInfo (ProcessorNumber, ProcessorInfoBuffer, NULL);
94}
95
158EFIAPI
161 IN EFI_AP_PROCEDURE Procedure,
162 IN BOOLEAN SingleThread,
163 IN UINTN TimeoutInMicroSeconds,
164 IN VOID *ProcedureArgument OPTIONAL
165 )
166{
168 Procedure,
169 SingleThread,
170 NULL,
171 TimeoutInMicroSeconds,
172 ProcedureArgument,
173 NULL
174 );
175}
176
222EFIAPI
225 IN EFI_AP_PROCEDURE Procedure,
226 IN UINTN ProcessorNumber,
227 IN UINTN TimeoutInMicroseconds,
228 IN VOID *ProcedureArgument OPTIONAL
229 )
230{
232 Procedure,
233 ProcessorNumber,
234 NULL,
235 TimeoutInMicroseconds,
236 ProcedureArgument,
237 NULL
238 );
239}
240
274EFIAPI
277 IN UINTN ProcessorNumber,
278 IN BOOLEAN EnableOldBSP
279 )
280{
281 return MpInitLibSwitchBSP (ProcessorNumber, EnableOldBSP);
282}
283
322EFIAPI
325 IN UINTN ProcessorNumber,
326 IN BOOLEAN EnableAP,
327 IN UINT32 *HealthFlag OPTIONAL
328 )
329{
330 return MpInitLibEnableDisableAP (ProcessorNumber, EnableAP, HealthFlag);
331}
332
356EFIAPI
359 OUT UINTN *ProcessorNumber
360 )
361{
362 return MpInitLibWhoAmI (ProcessorNumber);
363}
364
389EFIAPI
392 IN EFI_AP_PROCEDURE Procedure,
393 IN UINTN TimeoutInMicroSeconds,
394 IN VOID *ProcedureArgument OPTIONAL
395 )
396{
398 Procedure,
399 TimeoutInMicroSeconds,
400 ProcedureArgument
401 );
402}
403
404//
405// CPU MP2 PPI to be installed
406//
407EDKII_PEI_MP_SERVICES2_PPI mMpServices2Ppi = {
416};
UINT64 UINTN
EFI_STATUS EFIAPI EdkiiPeiWhoAmI(IN EDKII_PEI_MP_SERVICES2_PPI *This, OUT UINTN *ProcessorNumber)
Definition: CpuMp2Pei.c:357
EFI_STATUS EFIAPI EdkiiPeiEnableDisableAP(IN EDKII_PEI_MP_SERVICES2_PPI *This, IN UINTN ProcessorNumber, IN BOOLEAN EnableAP, IN UINT32 *HealthFlag OPTIONAL)
Definition: CpuMp2Pei.c:323
EFI_STATUS EFIAPI EdkiiPeiStartupAllCPUs(IN EDKII_PEI_MP_SERVICES2_PPI *This, IN EFI_AP_PROCEDURE Procedure, IN UINTN TimeoutInMicroSeconds, IN VOID *ProcedureArgument OPTIONAL)
Definition: CpuMp2Pei.c:390
EFI_STATUS EFIAPI EdkiiPeiGetNumberOfProcessors(IN EDKII_PEI_MP_SERVICES2_PPI *This, OUT UINTN *NumberOfProcessors, OUT UINTN *NumberOfEnabledProcessors)
Definition: CpuMp2Pei.c:45
EFI_STATUS EFIAPI EdkiiPeiStartupAllAPs(IN EDKII_PEI_MP_SERVICES2_PPI *This, IN EFI_AP_PROCEDURE Procedure, IN BOOLEAN SingleThread, IN UINTN TimeoutInMicroSeconds, IN VOID *ProcedureArgument OPTIONAL)
Definition: CpuMp2Pei.c:159
EFI_STATUS EFIAPI EdkiiPeiGetProcessorInfo(IN EDKII_PEI_MP_SERVICES2_PPI *This, IN UINTN ProcessorNumber, OUT EFI_PROCESSOR_INFORMATION *ProcessorInfoBuffer)
Definition: CpuMp2Pei.c:87
EFI_STATUS EFIAPI EdkiiPeiStartupThisAP(IN EDKII_PEI_MP_SERVICES2_PPI *This, IN EFI_AP_PROCEDURE Procedure, IN UINTN ProcessorNumber, IN UINTN TimeoutInMicroseconds, IN VOID *ProcedureArgument OPTIONAL)
Definition: CpuMp2Pei.c:223
EFI_STATUS EFIAPI EdkiiPeiSwitchBSP(IN EDKII_PEI_MP_SERVICES2_PPI *This, IN UINTN ProcessorNumber, IN BOOLEAN EnableOldBSP)
Definition: CpuMp2Pei.c:275
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
EFI_STATUS EFIAPI MpInitLibEnableDisableAP(IN UINTN ProcessorNumber, IN BOOLEAN EnableAP, IN UINT32 *HealthFlag OPTIONAL)
Definition: DxeMpLib.c:920
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)
Definition: DxeMpLib.c:682
EFI_STATUS EFIAPI MpInitLibWhoAmI(OUT UINTN *ProcessorNumber)
Definition: MpLib.c:1522
EFI_STATUS EFIAPI MpInitLibGetNumberOfProcessors(OUT UINTN *NumberOfProcessors OPTIONAL, OUT UINTN *NumberOfEnabledProcessors OPTIONAL)
Definition: MpLib.c:1559
EFI_STATUS EFIAPI MpInitLibSwitchBSP(IN UINTN ProcessorNumber, IN BOOLEAN EnableOldBSP)
Definition: DxeMpLib.c:847
EFI_STATUS EFIAPI MpInitLibStartupAllCPUs(IN EFI_AP_PROCEDURE Procedure, IN UINTN TimeoutInMicroseconds, IN VOID *ProcedureArgument OPTIONAL)
Definition: MpLib.c:1287
EFI_STATUS EFIAPI MpInitLibGetProcessorInfo(IN UINTN ProcessorNumber, OUT EFI_PROCESSOR_INFORMATION *ProcessorInfoBuffer, OUT EFI_HEALTH_FLAGS *HealthData OPTIONAL)
Definition: MpLib.c:1452
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)
Definition: DxeMpLib.c:789
VOID(EFIAPI * EFI_AP_PROCEDURE)(IN OUT VOID *Buffer)
Definition: PiMultiPhase.h:198
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29