summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-03-30 19:47:02 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-03-31 07:55:25 +0200
commit7c2eb0d78bdf5faddef61e051a29a262ad29b26a (patch)
treeb1bb41ff444ed60d482cd9fa14e112030e641d4e /src/arch
parent5b9384c3fc4dff5cf755db5a89a8729bea953810 (diff)
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 <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9172 Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/mips/bootblock_simple.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/arch/mips/bootblock_simple.c b/src/arch/mips/bootblock_simple.c
index 49ea24d9d4..747a8bfff6 100644
--- a/src/arch/mips/bootblock_simple.c
+++ b/src/arch/mips/bootblock_simple.c
@@ -19,17 +19,12 @@
* MA 02110-1301 USA
*/
-#include <arch/hlt.h>
-#include <arch/stages.h>
#include <bootblock_common.h>
-#include <cbfs.h>
#include <console/console.h>
+#include <program_loading.h>
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();
}