]> git.baikalelectronics.ru Git - uboot.git/commit
riscv: reset after crash
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 2 Dec 2020 13:36:26 +0000 (14:36 +0100)
committerAndes <uboot@andestech.com>
Mon, 14 Dec 2020 07:16:41 +0000 (15:16 +0800)
commitc6d8da342fbe5aeda6f3a6ff0a3c2cf616acd742
tree9828a8bf2e4bb05c6af46f8ed6c1f2af72850afb
parente3486b70a905102ed8cb08615572de6f07b57247
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: Rick Chen <rick@andestech.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/riscv/lib/interrupts.c