libpayload: Add CBMEM_IMD_ENTRY support to coreboot tables parser

Hardware / Coreboot - Jakub Czapiga [semihalf.com] - 3 December 2021 16:51 UTC

coreboot stores much information in the CBMEM IMD. Until now it was ignored. This patch makes use of these coreboot tables entries. It also removes get_cbmem_addr() function as it is no longer needed.

Moreover, the coreboot tables entry CB_TAG_MRC_CACHE does not exist anymore, as it is not created by the code. It was replaced by CBMEM_ID_MRCDATA entry, so MRCDATA should now be accessible through sysinfo structure field.

Change-Id: I5bd02a98ba2631f34014bc0f8e7ebd5a5ddd2321

2f236c232d libpayload: Add CBMEM_IMD_ENTRY support to coreboot tables parser
payloads/libpayload/arch/x86/coreboot.c | 8 --
payloads/libpayload/include/coreboot_tables.h | 12 ++-
payloads/libpayload/include/sysinfo.h | 6 ++
payloads/libpayload/libc/coreboot.c | 133 +++++++++++---------------
4 files changed, 71 insertions(+), 88 deletions(-)

Upstream: review.coreboot.org


  • Share