commit | b881ba8803e0d9c1c41ae4304f8b643a3e978414 | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | Wed Dec 02 14:36:26 2020 +0100 |
committer | Andes <uboot@andestech.com> | Mon Dec 14 15:16:41 2020 +0800 |
tree | 9828a8bf2e4bb05c6af46f8ed6c1f2af72850afb | |
parent | 4b96c8811a14f92777f96d3797775cdef7600804 [diff] |
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>