mirror of
https://github.com/acidanthera/audk.git
synced 2025-04-08 17:05:09 +02:00
ArmPkg/ProcessorSubClassDxe: Limit values to 0xFF
The CoreCount, EnabledCore and ThreadCount counts should be set to 0xFF if value is greater than 255 per the SMBIOS specification. Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
This commit is contained in:
parent
587100a95d
commit
9fc61309bf
@ -709,11 +709,11 @@ AddSmbiosProcessorTypeTable (
|
||||
Type4Record->L1CacheHandle = L1CacheHandle;
|
||||
Type4Record->L2CacheHandle = L2CacheHandle;
|
||||
Type4Record->L3CacheHandle = L3CacheHandle;
|
||||
Type4Record->CoreCount = MiscProcessorData.CoreCount;
|
||||
Type4Record->CoreCount = MIN (MiscProcessorData.CoreCount, MAX_UINT8);
|
||||
Type4Record->CoreCount2 = MiscProcessorData.CoreCount;
|
||||
Type4Record->EnabledCoreCount = MiscProcessorData.CoresEnabled;
|
||||
Type4Record->EnabledCoreCount = MIN (MiscProcessorData.CoresEnabled, MAX_UINT8);
|
||||
Type4Record->EnabledCoreCount2 = MiscProcessorData.CoresEnabled;
|
||||
Type4Record->ThreadCount = MiscProcessorData.ThreadCount;
|
||||
Type4Record->ThreadCount = MIN (MiscProcessorData.ThreadCount, MAX_UINT8);
|
||||
Type4Record->ThreadCount2 = MiscProcessorData.ThreadCount;
|
||||
|
||||
Type4Record->CurrentSpeed = GetCpuFrequency (ProcessorIndex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user