summaryrefslogtreecommitdiffstats
path: root/UefiCpuPkg/CpuMpPei/CpuMpPei.c
diff options
context:
space:
mode:
authorJeff Fan <jeff.fan@intel.com>2015-09-25 06:29:03 +0000
committervanjeff <vanjeff@Edk2>2015-09-25 06:29:03 +0000
commit630699bd8080021ab75338bb70f74c671f068a9e (patch)
treea59f51666e6c35346fa51b693344b912978ecd6f /UefiCpuPkg/CpuMpPei/CpuMpPei.c
parent87ce4210f52c0a9cf3f97937ec03c7155398e190 (diff)
downloadedk2-630699bd8080021ab75338bb70f74c671f068a9e.tar.gz
edk2-630699bd8080021ab75338bb70f74c671f068a9e.tar.bz2
edk2-630699bd8080021ab75338bb70f74c671f068a9e.zip
UefiCpuPkg/CpuMpPei: Add check on Processors number found
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18549 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'UefiCpuPkg/CpuMpPei/CpuMpPei.c')
-rw-r--r--UefiCpuPkg/CpuMpPei/CpuMpPei.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/UefiCpuPkg/CpuMpPei/CpuMpPei.c b/UefiCpuPkg/CpuMpPei/CpuMpPei.c
index d5aee86d11..81d5b19fca 100644
--- a/UefiCpuPkg/CpuMpPei/CpuMpPei.c
+++ b/UefiCpuPkg/CpuMpPei/CpuMpPei.c
@@ -368,6 +368,7 @@ CountProcessorNumber (
MicroSecondDelay (PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds));
PeiCpuMpData->InitFlag = 0;
PeiCpuMpData->CpuCount += (UINT32) PeiCpuMpData->MpCpuExchangeInfo->NumApsExecuting;
+ ASSERT (PeiCpuMpData->CpuCount <= PcdGet32(PcdCpuMaxLogicalProcessorNumber));
//
// Sort BSP/Aps by CPU APIC ID in ascending order
//