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>
This commit is contained in:
parent
5b9384c3fc
commit
7c2eb0d78b
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue