]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/CpuMpPei/CpuMpPei.c
UefiCpuPkg/CpuMpPei: Add check on Processors number found
[mirror_edk2.git] / UefiCpuPkg / CpuMpPei / CpuMpPei.c
index d5aee86d11e2d1082f6986eaf00bc6021b87afc5..81d5b19fca0dc30e7e2e660aff2c9616e2988caa 100644 (file)
@@ -368,6 +368,7 @@ CountProcessorNumber (
   MicroSecondDelay (PcdGet32 (PcdCpuApInitTimeOutInMicroSeconds));\r
   PeiCpuMpData->InitFlag  = 0;\r
   PeiCpuMpData->CpuCount += (UINT32) PeiCpuMpData->MpCpuExchangeInfo->NumApsExecuting;\r
+  ASSERT (PeiCpuMpData->CpuCount <= PcdGet32(PcdCpuMaxLogicalProcessorNumber));\r
   //\r
   // Sort BSP/Aps by CPU APIC ID in ascending order\r
   //\r