cbmem: add coreboot table records for each cbmem entry

Hardware / Coreboot - Aaron Durbin [chromium.org] - 2 November 2015 17:19 UTC

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 cbmem entry.

BUG=chrome-os-partner:43731 BRANCH=None TEST=Booted glados. View coreboot table entries with cbmem.

Change-Id: I125940aa1898c3e99077ead0660eff8aa905b13b

1ca2d86 cbmem: add coreboot table records for each cbmem entry
src/commonlib/include/commonlib/coreboot_tables.h | 13 ++++++
src/include/cbmem.h | 4 +-
src/include/imd.h | 16 ++++++++
src/lib/coreboot_table.c | 3 ++
src/lib/imd.c | 44 +++++++++++++++++++++
src/lib/imd_cbmem.c | 43 +++++++++++++++++++-
6 files changed, 119 insertions(+), 4 deletions(-)

Upstream: review.coreboot.org


  • Share