cbmem: add coreboot table records for each cbmem entry
In order to not expose the cbmem data structures to userland
that are used by coreboot internally add each of the cbmem
entries to a coreboot table record. The payload ABI uses
coreboot tables so this just provides a shortcut for cbmem
entries which were manually added previously by doing the
work on behalf of all entries.
A cursor structure and associated functions are added to
the imd code for walking the entries in order to be placed
in the coreboot tables. Additionally a struct lb_cbmem_entry
is added that lists the base address, size, and id of the
TEST=Booted glados. View coreboot table entries with cbmem.
Signed-off-by: Aaron Durbin <email@example.com>
Reviewed-by: Alexandru Gagniuc <firstname.lastname@example.org>
Tested-by: build bot (Jenkins)
6 files changed