From: Simon Glass Date: Wed, 25 Sep 2019 14:56:51 +0000 (-0600) Subject: x86: Panic when SPL or TPL fail X-Git-Tag: v2025.01-rc5-pxa1908~2751^2~8 X-Git-Url: http://git.dujemihanovic.xyz/login.html?a=commitdiff_plain;h=3d95688c85aa26dea5d98e277d724aff571a1b4e;p=u-boot.git 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 Reviewed-by: Bin Meng --- 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)); diff --git a/arch/x86/lib/tpl.c b/arch/x86/lib/tpl.c index cfefa78045..d70f590541 100644 --- a/arch/x86/lib/tpl.c +++ b/arch/x86/lib/tpl.c @@ -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() */