Re: [PATCH v2] riscv: Add option to print registers on exception

31 Dec
2019
31 Dec
'19
3:47 a.m.
From: Sean Anderson [mailto:seanga2@gmail.com] Sent: Wednesday, December 25, 2019 1:28 PM To: U-Boot Mailing List Cc: Rick Jian-Zhi Chen(陳建志) Subject: [PATCH v2] riscv: Add option to print registers on exception
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@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: Rick Chen rick@andestech.com
1957
Age (days ago)
1957
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rick Chen