summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 09:04:16 +0300
committerDamien Le Moal <damien.lemoal@wdc.com>2018-12-21 09:12:22 +0300
commit9c183df632ee91560e160d6011c7ece56ee1f9b0 (patch)
tree2093ce80a5e5af5f18203c60217aed4ecec06931 /lib
parent84df181c84921c4411eac7debce94316eb4a1132 (diff)
downloadopensbi-9c183df632ee91560e160d6011c7ece56ee1f9b0.tar.xz
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 <damien.lemoal@wdc.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/sbi_hart.c2
1 files changed, 2 insertions, 0 deletions
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();