summaryrefslogtreecommitdiff
path: root/UefiCpuPkg/CpuMpPei/CpuMpPei.c
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2015-07-15 03:40:41 +0000
committervanjeff <vanjeff@Edk2>2015-07-15 03:40:41 +0000
commitd1cf93333f3a9394c2f746db4deb374b6ba374fd (patch)
tree85c35cc5bf3e938f28ac701469e55a9a43bcc6e6 /UefiCpuPkg/CpuMpPei/CpuMpPei.c
parentd32c7f6cabf8d3c7d32c6f7c93d30222eaaa57cf (diff)
downloadedk2-platforms-d1cf93333f3a9394c2f746db4deb374b6ba374fd.tar.xz
UefiCpuPkg/CpuMpPei: Load microcode on BSP and APs
Add DetectMicrocode() to load microcode on BSP and 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@18002 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/CpuMpPei.c')
-rw-r--r--UefiCpuPkg/CpuMpPei/CpuMpPei.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b/UefiCpuPkg/CpuMpPei/CpuMpPei.c
index e39a813cdd..d63b1ff231 100644
--- a/UefiCpuPkg/CpuMpPei/CpuMpPei.c
+++ b/UefiCpuPkg/CpuMpPei/CpuMpPei.c
@@ -119,9 +119,10 @@ ApCFunction (
PeiCpuMpData->CpuData[NumApsExecuting].ApicId = GetInitialApicId ();
PeiCpuMpData->CpuData[NumApsExecuting].Health.Uint32 = (UINT32) BistData;
//
- // Sync BSP's Mtrr table to all wakeup APs
+ // Sync BSP's Mtrr table to all wakeup APs and load microcode on APs.
//
MtrrSetAllMtrrs (&PeiCpuMpData->MtrrTable);
+ MicrocodeDetect ();
}
//
@@ -288,7 +289,10 @@ CountProcessorNumber (
IN PEI_CPU_MP_DATA *PeiCpuMpData
)
{
-
+ //
+ // Load Microcode on BSP
+ //
+ MicrocodeDetect ();
//
// Store BSP's MTRR setting
//