diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2018-12-21 09:04:16 +0300 |
---|---|---|
committer | Damien Le Moal <damien.lemoal@wdc.com> | 2018-12-21 09:12:22 +0300 |
commit | 9c183df632ee91560e160d6011c7ece56ee1f9b0 (patch) | |
tree | 2093ce80a5e5af5f18203c60217aed4ecec06931 /lib | |
parent | 84df181c84921c4411eac7debce94316eb4a1132 (diff) | |
download | opensbi-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.c | 2 |
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(); |