x86: Panic when SPL or TPL fail
At present when these fail to boot there is no message, just a hang. Add a panic so it is obvious that something when wrong. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
parent
548aefa5b9
commit
3d95688c85
2 changed files with 2 additions and 2 deletions
|
@ -113,7 +113,7 @@ void board_init_f(ulong flags)
|
|||
ret = x86_spl_init();
|
||||
if (ret) {
|
||||
debug("Error %d\n", ret);
|
||||
hang();
|
||||
panic("x86_spl_init fail");
|
||||
}
|
||||
#ifdef CONFIG_TPL
|
||||
gd->bd = malloc(sizeof(*gd->bd));
|
||||
|
|
|
@ -55,7 +55,7 @@ void board_init_f(ulong flags)
|
|||
ret = x86_tpl_init();
|
||||
if (ret) {
|
||||
debug("Error %d\n", ret);
|
||||
hang();
|
||||
panic("x86_tpl_init fail");
|
||||
}
|
||||
|
||||
/* Uninit CAR and jump to board_init_f_r() */
|
||||
|
|
Loading…
Reference in a new issue