On Mon, 2014-11-03 at 08:38 +0000, Fan, Jeff wrote: > Chen, > > MP Service Protocol is not always installed. Please use ## SOMETIMES_PRODUCES > > + gEfiMpServiceProtocolGuid ## SOMETIMES_PRODUCES
OK. Thanks, Chen > Thanks! > Jeff > > -----Original Message----- > From: Chen Fan [mailto:chen.fan.f...@cn.fujitsu.com] > Sent: Monday, October 27, 2014 5:30 PM > To: edk2-devel@lists.sourceforge.net > Cc: Fan, Jeff; Jordan Justen > Subject: [RFC PATCH v6 08/27] UefiCpuPkg/CpuDxe: introduce > EFI_MP_SERVICES_PROTOCOL > > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Chen Fan <chen.fan.f...@cn.fujitsu.com> > --- > UefiCpuPkg/CpuDxe/CpuDxe.inf | 1 + > UefiCpuPkg/CpuDxe/CpuMp.c | 10 ++++++++++ > UefiCpuPkg/CpuDxe/CpuMp.h | 2 ++ > 3 files changed, 13 insertions(+) > > diff --git a/UefiCpuPkg/CpuDxe/CpuDxe.inf b/UefiCpuPkg/CpuDxe/CpuDxe.inf > index 1837560..4f8ccac 100644 > --- a/UefiCpuPkg/CpuDxe/CpuDxe.inf > +++ b/UefiCpuPkg/CpuDxe/CpuDxe.inf > @@ -70,6 +70,7 @@ > > [Protocols] > gEfiCpuArchProtocolGuid ## PRODUCES > + gEfiMpServiceProtocolGuid ## PRODUCES > > [Guids] > gIdleLoopEventGuid ## CONSUMES ## > Event > diff --git a/UefiCpuPkg/CpuDxe/CpuMp.c b/UefiCpuPkg/CpuDxe/CpuMp.c index > 956acf4..61c3a23 100644 > --- a/UefiCpuPkg/CpuDxe/CpuMp.c > +++ b/UefiCpuPkg/CpuDxe/CpuMp.c > @@ -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. > diff --git a/UefiCpuPkg/CpuDxe/CpuMp.h b/UefiCpuPkg/CpuDxe/CpuMp.h index > 6f5e615..efdd948 100644 > --- a/UefiCpuPkg/CpuDxe/CpuMp.h > +++ b/UefiCpuPkg/CpuDxe/CpuMp.h > @@ -15,6 +15,8 @@ > #ifndef _CPU_MP_H_ > #define _CPU_MP_H_ > > +#include <Protocol/MpService.h> > + > /** > Initialize Multi-processor support. > > -- > 1.9.3 > ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel