summaryrefslogtreecommitdiff
path: root/payloads/libpayload/libc/coreboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'payloads/libpayload/libc/coreboot.c')
-rw-r--r--payloads/libpayload/libc/coreboot.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/coreboot.c b/payloads/libpayload/libc/coreboot.c
index f5695d62dd..2474df96fa 100644
--- a/payloads/libpayload/libc/coreboot.c
+++ b/payloads/libpayload/libc/coreboot.c
@@ -268,6 +268,12 @@ static void cb_parse_cbmem_entry(void *ptr, struct sysinfo_t *info)
}
}
+static void cb_parse_rsdp(void *ptr, struct sysinfo_t *info)
+{
+ const struct cb_acpi_rsdp *cb_acpi_rsdp = ptr;
+ info->acpi_rsdp = cb_unpack64(cb_acpi_rsdp->rsdp_pointer);
+}
+
int cb_parse_header(void *addr, int len, struct sysinfo_t *info)
{
struct cb_header *header;
@@ -408,6 +414,9 @@ int cb_parse_header(void *addr, int len, struct sysinfo_t *info)
cb_parse_tsc_info(ptr, info);
break;
#endif
+ case CB_TAG_ACPI_RSDP:
+ cb_parse_rsdp(ptr, info);
+ break;
default:
cb_parse_arch_specific(rec, info);
break;