diff options
author | Jeff Fan <jeff.fan@intel.com> | 2015-07-15 03:39:24 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-07-15 03:39:24 +0000 |
commit | b4cd9f78ba0b672b4db0f223c5d78e6541554672 (patch) | |
tree | a320bf5b7f6eabab20c9ace03e9395941f8c01d0 /UefiCpuPkg/CpuMpPei/CpuMpPei.c | |
parent | f8e4e86bc5705340648724de35890fba56331a12 (diff) | |
download | edk2-platforms-b4cd9f78ba0b672b4db0f223c5d78e6541554672.tar.xz |
UefiCpuPkg/CpuMpPei: Sync BPS's mtrr setting to APs
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@17999 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/CpuMpPei.c')
-rw-r--r-- | UefiCpuPkg/CpuMpPei/CpuMpPei.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b/UefiCpuPkg/CpuMpPei/CpuMpPei.c index a2f25b9405..e39a813cdd 100644 --- a/UefiCpuPkg/CpuMpPei/CpuMpPei.c +++ b/UefiCpuPkg/CpuMpPei/CpuMpPei.c @@ -118,6 +118,10 @@ ApCFunction ( BistData = *(UINTN *) (PeiCpuMpData->Buffer + NumApsExecuting * PeiCpuMpData->CpuApStackSize - sizeof (UINTN)); PeiCpuMpData->CpuData[NumApsExecuting].ApicId = GetInitialApicId (); PeiCpuMpData->CpuData[NumApsExecuting].Health.Uint32 = (UINT32) BistData; + // + // Sync BSP's Mtrr table to all wakeup APs + // + MtrrSetAllMtrrs (&PeiCpuMpData->MtrrTable); } // @@ -286,6 +290,10 @@ CountProcessorNumber ( { // + // Store BSP's MTRR setting + // + MtrrGetAllMtrrs (&PeiCpuMpData->MtrrTable); + // // Send broadcast IPI to APs to wakeup APs // PeiCpuMpData->InitFlag = 1; |