From 9c183df632ee91560e160d6011c7ece56ee1f9b0 Mon Sep 17 00:00:00 2001 From: Damien Le Moal Date: Fri, 21 Dec 2018 15:04:16 +0900 Subject: [PATCH] Add a hang message Make it clear that the end of the FW execution was reached without the hand being passed to any payload. Signed-off-by: Damien Le Moal --- lib/sbi_hart.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/sbi_hart.c b/lib/sbi_hart.c index 26d435b..b30250b 100644 --- a/lib/sbi_hart.c +++ b/lib/sbi_hart.c @@ -196,6 +196,8 @@ int sbi_hart_init(struct sbi_scratch *scratch, u32 hartid) void __attribute__((noreturn)) sbi_hart_hang(void) { + sbi_printf("\nHang !!\n"); + while (1) wfi(); __builtin_unreachable();