mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/CpuDxe: NumberOfData is not BOOLEAN type
Should check NumberOfData value instead of treat its value as one BOOLEAN type. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jeff Fan <jeff.fan@intel.com> Reviewed-by: Shuming Qiu <shuming.qiu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17672 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
952bd22918
commit
13181dde42
|
@ -1580,7 +1580,7 @@ CollectBistDataFromHob (
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
while (NumberOfData--) {
|
while ((NumberOfData--) > 0) {
|
||||||
for (ProcessorNumber = 0; ProcessorNumber < mMpSystemData.NumberOfProcessors; ProcessorNumber++) {
|
for (ProcessorNumber = 0; ProcessorNumber < mMpSystemData.NumberOfProcessors; ProcessorNumber++) {
|
||||||
CpuData = &mMpSystemData.CpuDatas[ProcessorNumber];
|
CpuData = &mMpSystemData.CpuDatas[ProcessorNumber];
|
||||||
InitialLocalApicId = (UINT32) CpuData->Info.ProcessorId;
|
InitialLocalApicId = (UINT32) CpuData->Info.ProcessorId;
|
||||||
|
|
Loading…
Reference in New Issue