diff options
| author | Damien Le Moal <[email protected]> | 2018-12-21 15:04:16 +0900 |
|---|---|---|
| committer | Damien Le Moal <[email protected]> | 2018-12-21 15:12:22 +0900 |
| commit | 9c183df632ee91560e160d6011c7ece56ee1f9b0 (patch) | |
| tree | 2093ce80a5e5af5f18203c60217aed4ecec06931 | |
| parent | 84df181c84921c4411eac7debce94316eb4a1132 (diff) | |
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 <[email protected]>
| -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 26d435bd..b30250b3 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(); |
