git: 3b5fc5eead84 - main - riscv: Print stval in dump_regs for fatal exceptions
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 08 Sep 2023 23:37:14 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=3b5fc5eead84bd75dedead71a7f3771882942fa7
commit 3b5fc5eead84bd75dedead71a7f3771882942fa7
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-09-08 23:35:59 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-09-08 23:35:59 +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
---
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 bde402c1cc16..b855fcc4163a 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