mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-25 14:44:28 +02:00
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]
|
[Protocols]
|
||||||
gEfiCpuArchProtocolGuid ## PRODUCES
|
gEfiCpuArchProtocolGuid ## PRODUCES
|
||||||
|
gEfiMpServiceProtocolGuid ## SOMETIMES_PRODUCES
|
||||||
|
|
||||||
[Guids]
|
[Guids]
|
||||||
gIdleLoopEventGuid ## CONSUMES ## Event
|
gIdleLoopEventGuid ## CONSUMES ## Event
|
||||||
|
@ -24,6 +24,16 @@ VOID *mApStackStart = 0;
|
|||||||
|
|
||||||
volatile UINTN mNumberOfProcessors;
|
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
|
Application Processors do loop routine
|
||||||
after switch to its own stack.
|
after switch to its own stack.
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
#ifndef _CPU_MP_H_
|
#ifndef _CPU_MP_H_
|
||||||
#define _CPU_MP_H_
|
#define _CPU_MP_H_
|
||||||
|
|
||||||
|
#include <Protocol/MpService.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
Initialize Multi-processor support.
|
Initialize Multi-processor support.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user