From 7c2eb0d78bdf5faddef61e051a29a262ad29b26a Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Mon, 30 Mar 2015 19:47:02 -0500 Subject: mips: don't open code romstage loading Use the run_romstage() API to prevent code duplication and more maintenance for any API changes or features. Change-Id: I4122b813cccf4dc0703f256e1245deeeb90deeb9 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/9172 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc Reviewed-by: Patrick Georgi --- src/arch/mips/bootblock_simple.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/arch/mips') diff --git a/src/arch/mips/bootblock_simple.c b/src/arch/mips/bootblock_simple.c index 49ea24d..747a8bf 100644 --- a/src/arch/mips/bootblock_simple.c +++ b/src/arch/mips/bootblock_simple.c @@ -19,17 +19,12 @@ * MA 02110-1301 USA */ -#include -#include #include -#include #include +#include void main(void) { - const char *stage_name = "fallback/romstage"; - void *entry; - bootblock_cpu_init(); bootblock_mainboard_init(); @@ -37,9 +32,5 @@ void main(void) console_init(); #endif - entry = cbfs_load_stage(CBFS_DEFAULT_MEDIA, stage_name); - if (entry != (void *)-1) - stage_exit(entry); - - hlt(); + run_romstage(); } -- cgit v1.1