git: 7bf7713dcf34 - stable/14 - riscv: Print stval in dump_regs for fatal exceptions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 11 Oct 2023 15:44:29 UTC
The branch stable/14 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=7bf7713dcf34a6dd05cc3ca506166413de2807e7 commit 7bf7713dcf34a6dd05cc3ca506166413de2807e7 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2023-09-08 23:35:59 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-10-11 15:10:32 +0000 riscv: Print stval in dump_regs for fatal exceptions Reviewed by: mhorne, markj Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D41700 (cherry picked from commit 3b5fc5eead84bd75dedead71a7f3771882942fa7) --- sys/riscv/riscv/trap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/riscv/riscv/trap.c b/sys/riscv/riscv/trap.c index 123163ecfc10..ea48b02ba29b 100644 --- a/sys/riscv/riscv/trap.c +++ b/sys/riscv/riscv/trap.c @@ -186,6 +186,7 @@ dump_regs(struct trapframe *frame) print_with_symbol("tp", frame->tf_tp); print_with_symbol("sepc", frame->tf_sepc); printf("sstatus: 0x%016lx\n", frame->tf_sstatus); + printf("stval : 0x%016lx\n", frame->tf_stval); } static void