summaryrefslogtreecommitdiffstats
path: root/src/lib/program.ld
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-09-16 16:23:21 -0500
committerAaron Durbin <adurbin@chromium.org>2016-09-19 17:02:17 +0200
commit1e9a91420733bb4ec15170c7eb0e88e2f566c41b (patch)
tree8ca32839b77103d6264722ec95c723ed8d86361d /src/lib/program.ld
parent6b0cebccc4cfb99bb20f163de0f83af0c143c35a (diff)
downloadcoreboot-1e9a91420733bb4ec15170c7eb0e88e2f566c41b.tar.gz
coreboot-1e9a91420733bb4ec15170c7eb0e88e2f566c41b.tar.bz2
coreboot-1e9a91420733bb4ec15170c7eb0e88e2f566c41b.zip
arch/x86,lib: make cbmem console work in postcar stage
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 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/16619 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/lib/program.ld')
-rw-r--r--src/lib/program.ld2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/program.ld b/src/lib/program.ld
index 77adb3ced876..4668aea2c6b9 100644
--- a/src/lib/program.ld
+++ b/src/lib/program.ld
@@ -38,7 +38,7 @@
*(.text);
*(.text.*);
-#if ENV_RAMSTAGE || ENV_ROMSTAGE
+#if ENV_RAMSTAGE || ENV_ROMSTAGE || ENV_POSTCAR
. = ALIGN(ARCH_POINTER_ALIGN_SIZE);
_cbmem_init_hooks = .;
KEEP(*(.rodata.cbmem_init_hooks));