Re: [PATCH v2 1/1] riscv: reset after crash

2020-09-29 Thread Rick Chen
Heinrich > >> Schuchardt > >> Subject: [PATCH v2 1/1] 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 -

Re: [PATCH v2 1/1] riscv: reset after crash

2020-09-29 Thread Heinrich Schuchardt
On 29.09.20 10:22, Rick Chen wrote: >> From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] >> Sent: Sunday, September 27, 2020 7:21 AM >> To: Rick Jian-Zhi Chen(陳建志) >> Cc: Simon Glass; Sean Anderson; Bin Meng; u-boot@lists.denx.de; Heinrich >> Schuchardt >>

Re: [PATCH v2 1/1] riscv: reset after crash

2020-09-29 Thread Rick Chen
> From: Heinrich Schuchardt [mailto:xypron.g...@gmx.de] > Sent: Sunday, September 27, 2020 7:21 AM > To: Rick Jian-Zhi Chen(陳建志) > Cc: Simon Glass; Sean Anderson; Bin Meng; u-boot@lists.denx.de; Heinrich > Schuchardt > Subject: [PATCH v2 1/1] riscv: reset after crash > >

[PATCH v2 1/1] riscv: reset after crash

2020-09-26 Thread Heinrich Schuchardt
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 ###