smbios: coreboot: Update smbios_get_header() to use smbios_info

Use the smbios_info struct in this function, so it can deal with any
version of SMBIOS table.

Also update smbios_update_version_full() to work the same way.

Drop find_next_header() which is now unused.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-08-15 06:44:51 -06:00
parent 8de843271f
commit a68c0625aa
4 changed files with 41 additions and 48 deletions

View File

@@ -1127,7 +1127,8 @@ tcg2_measure_smbios(struct udevice *dev,
(void *)((uintptr_t)entry->struct_table_address),
entry->table_maximum_size);
smbios_prepare_measurement(entry, smbios_copy);
smbios_prepare_measurement(entry, smbios_copy,
entry->table_maximum_size);
ret = measure_event(dev, 1, EV_EFI_HANDOFF_TABLES2, event_size,
(u8 *)event);