Skip to content
Commit c353f2b8 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Andes
Browse files

riscv: reset after crash



If an exception occurs on ARM or x86, we call panic() which will try to
reset the board. Do the same on RISC-V.

To avoid -Werror=format-zero-length move a '\n' to the string passed to
panic. We don't need a message here as depending on CONFIG_PANIC_HANG we
will either see

    ### ERROR ### Please RESET the board ###

or

    resetting ...

as next message.

Reviewed-by: default avatarRick Chen <rick@andestech.com>
Signed-off-by: default avatarHeinrich Schuchardt <xypron.glpk@gmx.de>
parent fb33eaa3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment