vboot: prepare for x86 verstage

Hardware / Coreboot - Aaron Durbin [chromium.org] - 11 October 2015 18:57 UTC

In order to support x86 verstage proper the work buffer needs to live in cache-as-ram. However, after cache-as-ram is torn down one still needs the verification results to know which slot was selected. Though the platforms with a dedicated SRAM can just use the work buffer in SRAM, the x86 cache-as-ram platforms need a place to stash the results. For that situation cbmem is employed. This works because when cbmem is initialized cache-as-ram is still enabled. The VBOOT_DYNAMIC_WORK_BUFFER case assumes
verified boot doesn't start until after cbmem is up. That doesn't change, but it's a goal to get rid of that option entirely once all other x86 platforms are moved over to pre-romstage vboot.

BUG=chrome-os-partner:44827 BRANCH=None TEST=Built and booted glados with pre-romstage verification as well as VBOOT_DYNAMIC_WORK_BUFFER case.

Change-Id: I7eacd0edb2b6ca52b59b74075d17c00b50676d4c

b593366 vboot: prepare for x86 verstage
src/commonlib/include/commonlib/cbmem_id.h | 2 +
src/vendorcode/google/chromeos/vboot2/common.c | 81 +++++++++++++++++---
src/vendorcode/google/chromeos/vboot2/misc.h | 3 +
.../google/chromeos/vboot2/vboot_handoff.c | 14 ++++
.../google/chromeos/vboot2/vboot_loader.c | 14 +++-
5 files changed, 99 insertions(+), 15 deletions(-)

Upstream: review.coreboot.org


  • Share