UefiCpuPkg/CpuMpPei: Add CodeSegment and DataSegment fields
Added CodeSegment and DataSegment fields in MP_CPU_EXCHANGE_INFO. They are set to the values of current BSP's CS and DS. 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>
This commit is contained in:
@@ -455,6 +455,8 @@ WakeUpAP (
|
||||
ExchangeInfo->PmodeOffset = PeiCpuMpData->AddressMap.PModeEntryOffset;
|
||||
ExchangeInfo->LmodeOffset = PeiCpuMpData->AddressMap.LModeEntryOffset;
|
||||
ExchangeInfo->Cr3 = AsmReadCr3 ();
|
||||
ExchangeInfo->CodeSegment = AsmReadCs ();
|
||||
ExchangeInfo->DataSegment = AsmReadDs ();
|
||||
ExchangeInfo->CFunction = (UINTN) ApCFunction;
|
||||
ExchangeInfo->NumApsExecuting = 0;
|
||||
ExchangeInfo->PeiCpuMpData = PeiCpuMpData;
|
||||
|
Reference in New Issue
Block a user