diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-07-11 19:46:36 +0800 |
---|---|---|
committer | Hao Wu <hao.a.wu@intel.com> | 2016-07-14 15:51:16 +0800 |
commit | 66a586f6b4a8bde6706ed033f5f8235c4295f4bd (patch) | |
tree | 1c16f82e03b610ac816f4d50637e1259cc42a4a0 /UefiCpuPkg/CpuMpPei/CpuMpPei.c | |
parent | 22cb2cde2caab5538770f8fc7220b3c0792256d3 (diff) | |
download | edk2-platforms-66a586f6b4a8bde6706ed033f5f8235c4295f4bd.tar.xz |
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>
(cherry picked from commit 9c3d2f9a2985d97961b07ddc493b6e406ace8814)
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/CpuMpPei.c')
-rw-r--r-- | UefiCpuPkg/CpuMpPei/CpuMpPei.c | 6 |
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;
|