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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user