From f2b20d898a652889a819478174316cff235a501b Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 11 Feb 2013 21:07:18 -0600 Subject: 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 Reviewed-on: http://review.coreboot.org/2795 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- src/lib/cbfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') 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 - -- cgit v1.2.3