summaryrefslogtreecommitdiff
path: root/arch/x86/lib/spl.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-09-25 17:56:51 +0300
committerBin Meng <bmeng.cn@gmail.com>2019-10-11 11:45:05 +0300
commit3d95688c85aa26dea5d98e277d724aff571a1b4e (patch)
treefc59b3658480f1cdb7404bf3b52cb0f1a02631a4 /arch/x86/lib/spl.c
parent548aefa5b9e5c31681e0a8bd78e96b66eedd1137 (diff)
downloadu-boot-3d95688c85aa26dea5d98e277d724aff571a1b4e.tar.xz
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>
Diffstat (limited to 'arch/x86/lib/spl.c')
-rw-r--r--arch/x86/lib/spl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/spl.c b/arch/x86/lib/spl.c
index 2baac91383..7623fc9ada 100644
--- a/arch/x86/lib/spl.c
+++ b/arch/x86/lib/spl.c
@@ -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));