arch/x86/smbios: Bump to version 3.0
Fill in the new fields introduced with version 3.0 and install the new entry point structure identified by _SM3_. Tested on Linux 5.6 using tianocore as payload: Still able to decode the tables without errors. Change-Id: Iba7a54e9de0b315f8072e6fd2880582355132a81 Signed-off-by: Patrick Rudolph <patrick.rudolph@9elements.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/43719 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
parent
73030c8c54
commit
7a83582e77
2 changed files with 43 additions and 3 deletions
|
|
@ -247,6 +247,19 @@ struct smbios_entry {
|
|||
u8 smbios_bcd_revision;
|
||||
} __packed;
|
||||
|
||||
struct smbios_entry30 {
|
||||
u8 anchor[5];
|
||||
u8 checksum;
|
||||
u8 length;
|
||||
u8 major_version;
|
||||
u8 minor_version;
|
||||
u8 smbios_doc_rev;
|
||||
u8 entry_point_rev;
|
||||
u8 reserved;
|
||||
u32 struct_table_length;
|
||||
u64 struct_table_address;
|
||||
} __packed;
|
||||
|
||||
struct smbios_type0 {
|
||||
u8 type;
|
||||
u8 length;
|
||||
|
|
@ -402,6 +415,9 @@ struct smbios_type4 {
|
|||
u8 thread_count;
|
||||
u16 processor_characteristics;
|
||||
u16 processor_family2;
|
||||
u16 core_count2;
|
||||
u16 core_enabled2;
|
||||
u16 thread_count2;
|
||||
u8 eos[2];
|
||||
} __packed;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue