libpayload: Add CBMEM_ID_MEMINFO to sysinfo

BUG=b:450374306
TEST=Build and boot Google/Brya

Change-Id: I16d51e9aab7ec3d7430a1e6b6467007a3669d083
Signed-off-by: Jakub Czapiga <czapiga@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/90120
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
This commit is contained in:
Jakub Czapiga 2025-11-19 10:10:13 +00:00 committed by Matt DeVillier
commit fd603e5102
2 changed files with 9 additions and 0 deletions

View file

@ -45,6 +45,10 @@
#include <coreboot_tables.h>
#if CONFIG(LP_GPL)
#include <commonlib/memory_info.h>
#endif
/*
* This is a collection of information and pointers gathered
* mostly from the coreboot table.
@ -174,6 +178,8 @@ struct sysinfo_t {
uintptr_t pvmfw;
uint32_t pvmfw_size;
enum boot_mode_t boot_mode;
uintptr_t memory_info;
};
extern struct sysinfo_t lib_sysinfo;

View file

@ -273,6 +273,9 @@ static void cb_parse_cbmem_entry(void *ptr, struct sysinfo_t *info)
info->pvmfw = cbmem_entry->address;
info->pvmfw_size = cbmem_entry->entry_size;
break;
case CBMEM_ID_MEMINFO:
info->memory_info = cbmem_entry->address;
break;
default:
break;
}