mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/MpInitLib: Add InitFlag and CpuInfo in MP_CPU_EXCHANGE_INFO
Cc: Feng Tian <feng.tian@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com>
This commit is contained in:
parent
31a1e4da49
commit
46d4b8858f
|
@ -38,4 +38,6 @@ CodeSegmentLocation equ LockLocation + 28h
|
|||
DataSegmentLocation equ LockLocation + 2Ch
|
||||
EnableExecuteDisableLocation equ LockLocation + 30h
|
||||
Cr3Location equ LockLocation + 34h
|
||||
InitFlagLocation equ LockLocation + 38h
|
||||
CpuInfoLocation equ LockLocation + 3Ch
|
||||
|
||||
|
|
|
@ -664,6 +664,8 @@ FillExchangeInfoData (
|
|||
|
||||
ExchangeInfo->CFunction = (UINTN) ApWakeupFunction;
|
||||
ExchangeInfo->NumApsExecuting = 0;
|
||||
ExchangeInfo->InitFlag = (UINTN) CpuMpData->InitFlag;
|
||||
ExchangeInfo->CpuInfo = (CPU_INFO_IN_HOB *) (UINTN) CpuMpData->CpuInfoInHob;
|
||||
ExchangeInfo->CpuMpData = CpuMpData;
|
||||
|
||||
ExchangeInfo->EnableExecuteDisable = IsBspExecuteDisableEnabled ();
|
||||
|
|
|
@ -171,6 +171,8 @@ typedef struct {
|
|||
UINTN DataSegment;
|
||||
UINTN EnableExecuteDisable;
|
||||
UINTN Cr3;
|
||||
UINTN InitFlag;
|
||||
CPU_INFO_IN_HOB *CpuInfo;
|
||||
CPU_MP_DATA *CpuMpData;
|
||||
} MP_CPU_EXCHANGE_INFO;
|
||||
|
||||
|
|
|
@ -38,6 +38,6 @@ CodeSegmentLocation equ LockLocation + 4Ch
|
|||
DataSegmentLocation equ LockLocation + 54h
|
||||
EnableExecuteDisableLocation equ LockLocation + 5Ch
|
||||
Cr3Location equ LockLocation + 64h
|
||||
InitFlagLocation equ LockLocation + 6Ch
|
||||
CpuInfoLocation equ LockLocation + 74h
|
||||
|
||||
|
||||
;-------------------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue