From 9c3d2f9a2985d97961b07ddc493b6e406ace8814 Mon Sep 17 00:00:00 2001 From: Jeff Fan Date: Mon, 11 Jul 2016 19:46:36 +0800 Subject: [PATCH] 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 Cc: Michael Kinney Cc: Giri Mudusuru Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan Reviewed-by: Giri P Mudusuru --- UefiCpuPkg/CpuMpPei/CpuMpPei.c | 6 +----- 1 file changed, 1 insertion(+), 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) { @@ -859,10 +859,6 @@ CpuMpPeimInit ( EFI_VECTOR_HANDOFF_INFO *VectorInfo; EFI_PEI_VECTOR_HANDOFF_INFO_PPI *VectorHandoffInfoPpi; - // - // Load new GDT table on BSP - // - AsmInitializeGdt (&mGdt); // // Get Vector Hand-off Info PPI //