summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/arm64/smbios.c4
-rw-r--r--src/arch/x86/smbios.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/arch/arm64/smbios.c b/src/arch/arm64/smbios.c
index a8d0523795..f0be956cd5 100644
--- a/src/arch/arm64/smbios.c
+++ b/src/arch/arm64/smbios.c
@@ -66,8 +66,8 @@ int smbios_write_type4(unsigned long *current, int handle)
smbios_processor_id(t->processor_id);
t->processor_manufacturer = smbios_processor_manufacturer(t->eos);
t->processor_version = smbios_processor_name(t->eos);
- t->processor_family = 0xfe; /* Use processor_family2 field */
- t->processor_family2 = 0x101; /* ARMv8 */
+ t->processor_family = SMBIOS_PROCESSOR_FAMILY_FROM_FAMILY2;
+ t->processor_family2 = SMBIOS_PROCESSOR_FAMILY2_ARMV8;
t->processor_type = SMBIOS_PROCESSOR_TYPE_CENTRAL;
smbios_cpu_get_core_counts(&t->core_count2, &t->thread_count2);
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index ef2c19a7d0..4fa861249f 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -68,7 +68,7 @@ static int get_socket_type(void)
unsigned int __weak smbios_processor_family(struct cpuid_result res)
{
- return (res.eax > 0) ? 0x0c : 0x6;
+ return (res.eax > 0) ? SMBIOS_PROCESSOR_FAMILY_PENTIUM_PRO : SMBIOS_PROCESSOR_FAMILY_INTEL486;
}
static size_t get_number_of_caches(size_t max_logical_cpus_sharing_cache)