summaryrefslogtreecommitdiff
path: root/UefiCpuPkg
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2017-04-01 21:29:54 +0800
committerJeff Fan <jeff.fan@intel.com>2017-04-06 16:06:25 +0800
commitcb811673c765b1bdb2e88ed4f8210f784a88fd6c (patch)
tree1a706770b45edc3be4dea9cf67fccbe194fd1dbb /UefiCpuPkg
parent90defe7198a42b3157ae5d9b93714f891cf06e57 (diff)
downloadedk2-platforms-cb811673c765b1bdb2e88ed4f8210f784a88fd6c.tar.xz
UefiCpuPkg/MpLib.c: Load microcode before mtrr sync per IA32 SDM
Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=453 Cc: Jiewen Yao <jiewen.yao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Feng Tian <feng.tian@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
Diffstat (limited to 'UefiCpuPkg')
-rw-r--r--UefiCpuPkg/Library/MpInitLib/MpLib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.c b/UefiCpuPkg/Library/MpInitLib/MpLib.c
index bb93526dd9..03d6c2d89e 100644
--- a/UefiCpuPkg/Library/MpInitLib/MpLib.c
+++ b/UefiCpuPkg/Library/MpInitLib/MpLib.c
@@ -382,13 +382,13 @@ ApInitializeSync (
CpuMpData = (CPU_MP_DATA *) Buffer;
//
- // Sync BSP's MTRR table to AP
- //
- MtrrSetAllMtrrs (&CpuMpData->MtrrTable);
- //
// Load microcode on AP
//
MicrocodeDetect (CpuMpData);
+ //
+ // Sync BSP's MTRR table to AP
+ //
+ MtrrSetAllMtrrs (&CpuMpData->MtrrTable);
}
/**