selfboot: use bootmem infrastructure

Hardware / Coreboot - Aaron Durbin [chromium.org] - 3 March 2014 14:47 EST

Instead of packing and unpacking entries in lb_mem use the bootmem infrastructure for performing sanity checks during payload loading.

Change-Id: Ica2bee7ebb0f6bf9ded31deac8cb700aa387bc7a

ceebc05 selfboot: use bootmem infrastructure
src/include/payload_loader.h | 3 +-
src/lib/loaders/load_and_run_payload.c | 5 +-
src/lib/selfboot.c | 151 +++++++++-----------------------
3 files changed, 44 insertions(+), 115 deletions(-)

Upstream: review.coreboot.org


  • Share