diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-12-28 08:30:23 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-01-09 10:09:15 +0100 |
commit | 0920bd50dc1d5e58a6afd74fcbd6aaf0405d7c65 (patch) | |
tree | 2c977e97d2ca77942acd5f16df9cd9235cc64dfb /lib/smbios.c | |
parent | dc2fe5d84ea1f285fa0ad1052deee742c8f593e3 (diff) | |
download | u-boot-0920bd50dc1d5e58a6afd74fcbd6aaf0405d7c65.zip u-boot-0920bd50dc1d5e58a6afd74fcbd6aaf0405d7c65.tar.gz u-boot-0920bd50dc1d5e58a6afd74fcbd6aaf0405d7c65.tar.bz2 |
smbios: enable setting processor family > 0xff
Many value of processor type exceed 0xff and have to be stored as u16
value. In the type 4 table set processor_family = 0xfe signaling that
field processor_family2 is used and write the actual value into the
processor_family2 field.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/smbios.c')
-rw-r--r-- | lib/smbios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/smbios.c b/lib/smbios.c index d9d52bd..41aa936 100644 --- a/lib/smbios.c +++ b/lib/smbios.c @@ -467,7 +467,8 @@ static void smbios_write_type4_dm(struct smbios_type4 *t, } #endif - t->processor_family = processor_family; + t->processor_family = 0xfe; + t->processor_family2 = processor_family; t->processor_manufacturer = smbios_add_prop(ctx, NULL, vendor); t->processor_version = smbios_add_prop(ctx, NULL, name); } @@ -489,7 +490,6 @@ static int smbios_write_type4(ulong *current, int handle, t->l1_cache_handle = 0xffff; t->l2_cache_handle = 0xffff; t->l3_cache_handle = 0xffff; - t->processor_family2 = t->processor_family; len = t->length + smbios_string_table_len(ctx); *current += len; |