From e4f3e7a9c656356a92e827d5a39b85106cbdaf3a Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Tue, 17 Mar 2015 13:25:19 -0500 Subject: romstages: use common run_ramstage() Instead of sprinkling the cbfs calls around (as well as getting return values incorrect) use the common run_ramstage() to perform the necessary work to load and run ramstage. Change-Id: I37b1e94be36ef7a43efe65b2db110742fa105169 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/8710 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Stefan Reinauer --- src/mainboard/google/nyan_blaze/romstage.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/mainboard/google/nyan_blaze') diff --git a/src/mainboard/google/nyan_blaze/romstage.c b/src/mainboard/google/nyan_blaze/romstage.c index 522ee91043..1d7d77d42f 100644 --- a/src/mainboard/google/nyan_blaze/romstage.c +++ b/src/mainboard/google/nyan_blaze/romstage.c @@ -21,11 +21,11 @@ #include #include #include -#include #include #include #include #include +#include #include #include #include "sdram_configs.h" @@ -205,12 +205,7 @@ static void __attribute__((noinline)) romstage(void) vboot_verify_firmware(romstage_handoff_find_or_add()); #endif - timestamp_add_now(TS_START_COPYRAM); - void *entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, - "fallback/coreboot_ram"); - timestamp_add_now(TS_END_COPYRAM); - - stage_exit(entry); + run_ramstage(); } /* Stub to force arm_init_caches to the top, before any stack/memory accesses */ -- cgit v1.2.3