diff options
Diffstat (limited to 'payloads/libpayload/libc')
-rw-r--r-- | payloads/libpayload/libc/coreboot.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/payloads/libpayload/libc/coreboot.c b/payloads/libpayload/libc/coreboot.c index 2f4536cbea..489adf4a9f 100644 --- a/payloads/libpayload/libc/coreboot.c +++ b/payloads/libpayload/libc/coreboot.c @@ -189,6 +189,14 @@ static void cb_parse_wifi_calibration(void *ptr, struct sysinfo_t *info) info->wifi_calibration = phys_to_virt(cbmem->cbmem_tab); } +static void cb_parse_ramoops(void *ptr, struct sysinfo_t *info) +{ + struct lb_range *ramoops = (struct lb_range *)ptr; + + info->ramoops_buffer = ramoops->range_start; + info->ramoops_buffer_size = ramoops->range_size; +} + int cb_parse_header(void *addr, int len, struct sysinfo_t *info) { struct cb_header *header; @@ -324,6 +332,9 @@ int cb_parse_header(void *addr, int len, struct sysinfo_t *info) case CB_TAG_WIFI_CALIBRATION: cb_parse_wifi_calibration(ptr, info); break; + case CB_TAG_RAM_OOPS: + cb_parse_ramoops(ptr, info); + break; default: cb_parse_arch_specific(rec, info); break; |