arch/x86,lib: make cbmem console work in postcar stage

Hardware / Coreboot - Aaron Durbin [chromium.org] - 19 September 2016 10:02 UTC

Implement postcar stage cbmem console support. The postcar stage is more like ramstage in that RAM is already up. Therefore, in order to make the cbmem console reinit flow work one needs the cbmem init hook infrastructure in place and the cbmem recovery called. This call is added to x86/postcar.c to achieve that. Additionally, one needs to provide postcar stage cbmem init hook callbacks for the cbmem console library to use. A few other places need to become postcar stage aware so that the code paths are taken. Lastly, since postcar is backed by ram indicate that to the cbmem backing store.

BUG=chrome-os-partner:57513

Change-Id: I51db65d8502c456b08f291fd1b59f6ea72059dfd

1e9a914 arch/x86,lib: make cbmem console work in postcar stage
src/arch/x86/postcar.c | 4 ++++
src/include/cbmem.h | 14 ++++++++++++++
src/include/console/cbmem_console.h | 2 +-
src/lib/Makefile.inc | 1 +
src/lib/cbmem_console.c | 3 ++-
src/lib/imd_cbmem.c | 3 ++-
src/lib/program.ld | 2 +-
7 files changed, 25 insertions(+), 4 deletions(-)

Upstream: review.coreboot.org


  • Share