mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/CpuDxe: introduce EFI_MP_SERVICES_PROTOCOL
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chen Fan <chen.fan.fnst@cn.fujitsu.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16352 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e343f8f7b3
commit
003973d98c
|
@ -70,6 +70,7 @@
|
|||
|
||||
[Protocols]
|
||||
gEfiCpuArchProtocolGuid ## PRODUCES
|
||||
gEfiMpServiceProtocolGuid ## SOMETIMES_PRODUCES
|
||||
|
||||
[Guids]
|
||||
gIdleLoopEventGuid ## CONSUMES ## Event
|
||||
|
|
|
@ -24,6 +24,16 @@ VOID *mApStackStart = 0;
|
|||
|
||||
volatile UINTN mNumberOfProcessors;
|
||||
|
||||
EFI_MP_SERVICES_PROTOCOL mMpServicesTemplate = {
|
||||
NULL, // GetNumberOfProcessors,
|
||||
NULL, // GetProcessorInfo,
|
||||
NULL, // StartupAllAPs,
|
||||
NULL, // StartupThisAP,
|
||||
NULL, // SwitchBSP,
|
||||
NULL, // EnableDisableAP,
|
||||
NULL // WhoAmI
|
||||
};
|
||||
|
||||
/**
|
||||
Application Processors do loop routine
|
||||
after switch to its own stack.
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#ifndef _CPU_MP_H_
|
||||
#define _CPU_MP_H_
|
||||
|
||||
#include <Protocol/MpService.h>
|
||||
|
||||
/**
|
||||
Initialize Multi-processor support.
|
||||
|
||||
|
|
Loading…
Reference in New Issue