summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuMpPei/CpuMpPei.h
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2015-11-25 02:47:34 +0000
committervanjeff <vanjeff@Edk2>2015-11-25 02:47:34 +0000
commit2f0261b7dcab49b1ee503a4b545238b59f58123d (patch)
treedb4291b00a9264998057bd0bdb441981bc1a0748 /UefiCpuPkg/CpuMpPei/CpuMpPei.h
parentbf14e1077aa66ef1cb49bdaf06181de48bb2477f (diff)
downloadedk2-2f0261b7dcab49b1ee503a4b545238b59f58123d.tar.gz
edk2-2f0261b7dcab49b1ee503a4b545238b59f58123d.tar.bz2
edk2-2f0261b7dcab49b1ee503a4b545238b59f58123d.zip
UefiCpuPkg/CpuMpPei: Set X2APIC flag if one x2APIC ID larger than 254
If there are any logical processor reporting an APIC ID of 255 or greater, set X2ApicEnable flag. GetInitialApicId() will return x2APIC ID if CPUID leaf B supported. Cc: Feng Tian <feng.tian@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Michael Kinney <michael.d.kinney@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18933 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/CpuMpPei.h')
-rw-r--r--UefiCpuPkg/CpuMpPei/CpuMpPei.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.h b/UefiCpuPkg/CpuMpPei/CpuMpPei.h
index 9325a12d4c..de9011329c 100644
--- a/UefiCpuPkg/CpuMpPei/CpuMpPei.h
+++ b/UefiCpuPkg/CpuMpPei/CpuMpPei.h
@@ -124,6 +124,7 @@ typedef struct {
// PEI CPU MP Data save in memory
//
struct _PEI_CPU_MP_DATA {
+ SPIN_LOCK MpLock;
UINT32 CpuCount;
UINT32 BspNumber;
UINTN Buffer;
@@ -137,6 +138,7 @@ struct _PEI_CPU_MP_DATA {
volatile UINT32 FinishedCount;
BOOLEAN EndOfPeiFlag;
BOOLEAN InitFlag;
+ BOOLEAN X2ApicEnable;
CPU_EXCHANGE_ROLE_INFO BSPInfo;
CPU_EXCHANGE_ROLE_INFO APInfo;
MTRR_SETTINGS MtrrTable;