summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Gondois <pierre.gondois@arm.com>2026-06-05 17:44:09 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-06-29 07:45:14 +0000
commit4ac0ee3fd0222362e45e281fd7f1ac315c8a894f (patch)
treec99936e625bff03ce6ecd2a9152d6bff2831853e
parentd1806ae8fa90489822f8f64df605af1aecaa0156 (diff)
downloadedk2-4ac0ee3fd0222362e45e281fd7f1ac315c8a894f.tar.gz
edk2-4ac0ee3fd0222362e45e281fd7f1ac315c8a894f.zip
DynamicTablesPkg/SmbiosType4Lib: Fix processor characteristics description
Always set the ProcessorArm64SocId bit for arm64 build and conditionally set the Processor64BitCapable bits for 64-bits architectures. Signed-off-by: Pierre Gondois <pierre.gondois@arm.com>
-rw-r--r--DynamicTablesPkg/Library/Smbios/SmbiosType4Lib/SmbiosType4Generator.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/DynamicTablesPkg/Library/Smbios/SmbiosType4Lib/SmbiosType4Generator.c b/DynamicTablesPkg/Library/Smbios/SmbiosType4Lib/SmbiosType4Generator.c
index 16f8cb812e..cffc869e5f 100644
--- a/DynamicTablesPkg/Library/Smbios/SmbiosType4Lib/SmbiosType4Generator.c
+++ b/DynamicTablesPkg/Library/Smbios/SmbiosType4Lib/SmbiosType4Generator.c
@@ -469,10 +469,13 @@ BuildSmbiosType4TableEx (
CharacteristicFlags = (PROCESSOR_CHARACTERISTIC_FLAGS *)&SmbiosRecord->ProcessorCharacteristics;
#if defined (MDE_CPU_AARCH64)
- CharacteristicFlags->Processor64BitCapable = 1;
+ CharacteristicFlags->ProcessorArm64SocId = 1;
#endif
CharacteristicFlags->ProcessorMultiCore = (CpuCount > 1) ? 1 : 0;
CharacteristicFlags->ProcessorHardwareThread = (ThreadCount > CpuCount) ? 1 : 0;
+ if (MAX_UINTN == MAX_UINT64) {
+ CharacteristicFlags->Processor64BitCapable = 1;
+ }
SmbiosRecord->CoreCount = (CpuCount < 256) ? CpuCount : 0xff;
SmbiosRecord->CoreCount2 = CpuCount;