cbfs/rmodule: add architecture specific operations at stage load

Hardware / Coreboot - Ionela Voinescu [imgtec.com] - 27 March 2015 13:35 UTC

Two weak functions were added so that architecture specific operations on each segment of payload or stage can be performed. Each architecture must define its own operations, otherwise the behavior will default to do-nothing functions.

This patch has been updated by to fit more in line with how program loading is currently being done. The API is the same as the original, but all call sites to stages/payloads have been updated. This is known to break any archs that use rmodule loading that needs cache maintenance. That will be fixed in a forthcoming patch. Also, the vboot paths are left as is for easier upstreaming of the rest of the vboot patches.

Original-Change-Id: Ie29e7f9027dd430c8b4dde9848fa3413c5dbfbfa

00903e5 cbfs/rmodule: add architecture specific operations at stage load
src/include/program_loading.h | 7 +++++++
src/lib/Makefile.inc | 4 ++++
src/lib/arch_ops.c | 33 +++++++++++++++++++++++++++++++++
src/lib/cbfs.c | 3 +++
src/lib/rmodule.c | 6 ++++--
src/lib/selfboot.c | 14 ++++++++++++++
6 files changed, 65 insertions(+), 2 deletions(-)

Upstream: review.coreboot.org


  • Share