[PATCH v2] riscv: Add option to print registers on exception
Bin Meng
bmeng.cn at gmail.com
Fri Jan 3 15:36:39 CET 2020
On Wed, Dec 25, 2019 at 1:27 PM Sean Anderson <seanga2 at gmail.com> wrote:
>
> When debugging, it can be helpful to see more information about an
> unhandled exception. This patch adds an option to view the registers at
> the time of the trap, similar to the linux output on a kernel panic.
>
> Signed-off-by: Sean Anderson <seanga2 at gmail.com>
> ---
> Changes for v2:
> - Renamed "PC" to "EPC"
>
> arch/riscv/Kconfig | 3 +++
> arch/riscv/cpu/mtrap.S | 3 ++-
> arch/riscv/lib/interrupts.c | 50 +++++++++++++++++++++++++++++--------
> 3 files changed, 44 insertions(+), 12 deletions(-)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
Tested-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list