summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuMpPei/CpuMpPei.c
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2016-07-11 19:46:36 +0800
committerJeff Fan <jeff.fan@intel.com>2016-07-14 09:44:00 +0800
commit9c3d2f9a2985d97961b07ddc493b6e406ace8814 (patch)
treee3586818c29f8962cf957b38116fa8e152f30582 /UefiCpuPkg/CpuMpPei/CpuMpPei.c
parentd1471c011277829cf04a3078fa1931c104c22afa (diff)
downloadedk2-9c3d2f9a2985d97961b07ddc493b6e406ace8814.tar.gz
edk2-9c3d2f9a2985d97961b07ddc493b6e406ace8814.tar.bz2
edk2-9c3d2f9a2985d97961b07ddc493b6e406ace8814.zip
UefiCpuPkg/CpuMpPei: Do not load new GDT table
Do not load the new GDT table and just to use the exiting BSP's GDT table set up by SEC phase. Cc: Feng Tian <feng.tian@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Cc: Giri Mudusuru <giri.p.mudusuru@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Giri P Mudusuru <giri.p.mudusuru@intel.com>
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/CpuMpPei.c')
-rw-r--r--UefiCpuPkg/CpuMpPei/CpuMpPei.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b/UefiCpuPkg/CpuMpPei/CpuMpPei.c
index 9b602a1906..5a1a64888c 100644
--- a/UefiCpuPkg/CpuMpPei/CpuMpPei.c
+++ b/UefiCpuPkg/CpuMpPei/CpuMpPei.c
@@ -464,7 +464,7 @@ WakeUpAP (
//
// Get the BSP's data of GDT and IDT
//
- CopyMem ((VOID *)&ExchangeInfo->GdtrProfile, &mGdt, sizeof(mGdt));
+ AsmReadGdtr ((IA32_DESCRIPTOR *) &ExchangeInfo->GdtrProfile);
AsmReadIdtr ((IA32_DESCRIPTOR *) &ExchangeInfo->IdtrProfile);
if (PeiCpuMpData->ApLoopMode == ApInMwaitLoop) {
@@ -860,10 +860,6 @@ CpuMpPeimInit (
EFI_PEI_VECTOR_HANDOFF_INFO_PPI *VectorHandoffInfoPpi;
//
- // Load new GDT table on BSP
- //
- AsmInitializeGdt (&mGdt);
- //
// Get Vector Hand-off Info PPI
//
VectorInfo = NULL;