diff options
author | Jeff Fan <jeff.fan@intel.com> | 2015-09-25 06:29:03 +0000 |
---|---|---|
committer | vanjeff <vanjeff@Edk2> | 2015-09-25 06:29:03 +0000 |
commit | 630699bd8080021ab75338bb70f74c671f068a9e (patch) | |
tree | a59f51666e6c35346fa51b693344b912978ecd6f /UefiCpuPkg | |
parent | 87ce4210f52c0a9cf3f97937ec03c7155398e190 (diff) | |
download | edk2-platforms-630699bd8080021ab75338bb70f74c671f068a9e.tar.xz |
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')
-rw-r--r-- | UefiCpuPkg/CpuMpPei/CpuMpPei.c | 1 |
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
//
|