diff options
author | Jeff Fan <jeff.fan@intel.com> | 2015-07-15 03:45:11 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-07-15 03:45:11 +0000 |
commit | e35d034736404dca9240bfe9bd575ea8265461a6 (patch) | |
tree | 89be75bb8672c4660c47883f4f249d55619d7e55 /UefiCpuPkg/CpuMpPei/PeiMpServices.c | |
parent | 53d3f06fd70b16e2dfe4e54569e89ce4ff107d33 (diff) | |
download | edk2-platforms-e35d034736404dca9240bfe9bd575ea8265461a6.tar.xz |
UefiCpuPkg/CpuMpPei: Install PI CPU MP PPI
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jeff Fan <jeff.fan@intel.com>
Reviewed-by: Feng Tian <feng.tian@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18012 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/PeiMpServices.c')
-rw-r--r-- | UefiCpuPkg/CpuMpPei/PeiMpServices.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuMpPei/PeiMpServices.c b/UefiCpuPkg/CpuMpPei/PeiMpServices.c index b20892be82..5c20c1874e 100644 --- a/UefiCpuPkg/CpuMpPei/PeiMpServices.c +++ b/UefiCpuPkg/CpuMpPei/PeiMpServices.c @@ -14,6 +14,24 @@ #include "PeiMpServices.h" +// +// CPU MP PPI to be installed +// +EFI_PEI_MP_SERVICES_PPI mMpServicesPpi = { + PeiGetNumberOfProcessors, + PeiGetProcessorInfo, + PeiStartupAllAPs, + PeiStartupThisAP, + PeiSwitchBSP, + PeiEnableDisableAP, + PeiWhoAmI, +}; + +EFI_PEI_PPI_DESCRIPTOR mPeiCpuMpPpiDesc = { + (EFI_PEI_PPI_DESCRIPTOR_PPI | EFI_PEI_PPI_DESCRIPTOR_TERMINATE_LIST), + &gEfiPeiMpServicesPpiGuid, + &mMpServicesPpi +}; /** Get CPU Package/Core/Thread location information. |