summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2013-02-11 21:07:18 -0600
committerRonald G. Minnich <rminnich@gmail.com>2013-03-21 22:49:18 +0100
commitf2b20d898a652889a819478174316cff235a501b (patch)
tree150341c02a783135cbecce2a43969bc131891e66 /src/lib
parentef4275bc2e4332ed9b6f3ac25060687794f0b98d (diff)
downloadcoreboot-f2b20d898a652889a819478174316cff235a501b.tar.xz
romstage_handoff: provide common logic for setup
The romstage_handoff structure can be utilized from different components of the romstage -- some in the chipset code, some in coreboot's core libarary. To ensure that all users handle initialization of a newly added romstage_handoff structure properly, provide a common function to handle structure initialization. Change-Id: I3998c6bb228255f4fd93d27812cf749560b06e61 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/2795 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/cbfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/cbfs.c b/src/lib/cbfs.c
index 4dac4bb5c2..a3d08f33f4 100644
--- a/src/lib/cbfs.c
+++ b/src/lib/cbfs.c
@@ -161,7 +161,7 @@ void * cbfs_load_stage(struct cbfs_media *media, const char *name)
if (rmodule_load(ramstage_loc, &ramstage))
return (void *) -1;
- handoff = cbmem_add(CBMEM_ID_ROMSTAGE_INFO, sizeof(*handoff));
+ handoff = romstage_handoff_find_or_add();
if (handoff) {
handoff->reserve_base = (uint32_t)ramstage_base;
handoff->reserve_size = (uint32_t)cbmem_base -