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:
Chen Fan 2014-11-13 18:26:13 +00:00 committed by jljusten
parent e343f8f7b3
commit 003973d98c
3 changed files with 13 additions and 0 deletions

View File

@ -70,6 +70,7 @@
[Protocols]
gEfiCpuArchProtocolGuid ## PRODUCES
gEfiMpServiceProtocolGuid ## SOMETIMES_PRODUCES
[Guids]
gIdleLoopEventGuid ## CONSUMES ## Event

View File

@ -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.

View File

@ -15,6 +15,8 @@
#ifndef _CPU_MP_H_
#define _CPU_MP_H_
#include <Protocol/MpService.h>
/**
Initialize Multi-processor support.