summaryrefslogtreecommitdiff
path: root/payloads
diff options
context:
space:
mode:
authorMaximilian Brune <maximilian.brune@9elements.com>2023-08-07 19:50:43 +0200
committerMartin L Roth <gaumless@gmail.com>2023-08-17 15:48:56 +0000
commit676ef5b38ba44623ce007f120cae1ba3f4572e8f (patch)
tree93232837255880e4c188448a98d6d14e53175a76 /payloads
parent4e18d17c3ce574249b376c54aa989e4aaa987e0e (diff)
libpayload: Add parsing of SMBIOS address
Signed-off-by: Maximilian Brune <maximilian.brune@9elements.com> Change-Id: Ie4032048f5f53b25c46f00b3b48eb5f986a5d0b3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/77045 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin L Roth <gaumless@gmail.com>
Diffstat (limited to 'payloads')
-rw-r--r--payloads/libpayload/include/sysinfo.h1
-rw-r--r--payloads/libpayload/libc/coreboot.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/payloads/libpayload/include/sysinfo.h b/payloads/libpayload/include/sysinfo.h
index 12d8a13e3f..d5f507377c 100644
--- a/payloads/libpayload/include/sysinfo.h
+++ b/payloads/libpayload/include/sysinfo.h
@@ -113,6 +113,7 @@ struct sysinfo_t {
uintptr_t acpi_gnvs;
uintptr_t acpi_cnvs;
uintptr_t acpi_rsdp;
+ uintptr_t smbios;
#define UNDEFINED_STRAPPING_ID (~0)
#define UNDEFINED_FW_CONFIG ~((uint64_t)0)
diff --git a/payloads/libpayload/libc/coreboot.c b/payloads/libpayload/libc/coreboot.c
index bcc9530733..3c49484064 100644
--- a/payloads/libpayload/libc/coreboot.c
+++ b/payloads/libpayload/libc/coreboot.c
@@ -224,6 +224,9 @@ static void cb_parse_cbmem_entry(void *ptr, struct sysinfo_t *info)
case CBMEM_ID_ACPI_GNVS:
info->acpi_gnvs = cbmem_entry->address;
break;
+ case CBMEM_ID_SMBIOS:
+ info->smbios = cbmem_entry->address;
+ break;
case CBMEM_ID_CBFS_RO_MCACHE:
info->cbfs_ro_mcache_offset = cbmem_entry->address;
info->cbfs_ro_mcache_size = cbmem_entry->entry_size;