diff options
author | Jeff Fan <jeff.fan@intel.com> | 2016-07-11 19:46:36 +0800 |
---|---|---|
committer | Jeff Fan <jeff.fan@intel.com> | 2016-07-14 09:44:00 +0800 |
commit | 9c3d2f9a2985d97961b07ddc493b6e406ace8814 (patch) | |
tree | e3586818c29f8962cf957b38116fa8e152f30582 /UefiCpuPkg/CpuMpPei | |
parent | d1471c011277829cf04a3078fa1931c104c22afa (diff) | |
download | edk2-9c3d2f9a2985d97961b07ddc493b6e406ace8814.tar.gz |
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')
-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;
|