From fec4a2f716d98cc7f863779aca1da4d763575caa Mon Sep 17 00:00:00 2001 From: kettenis Date: Mon, 26 Jul 2021 22:13:19 +0000 Subject: [PATCH] Print a few more registers in dump_regs(). --- sys/arch/riscv64/riscv64/trap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/arch/riscv64/riscv64/trap.c b/sys/arch/riscv64/riscv64/trap.c index 31e496c2406..8acaee862b8 100644 --- a/sys/arch/riscv64/riscv64/trap.c +++ b/sys/arch/riscv64/riscv64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.15 2021/06/20 17:57:10 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.16 2021/07/26 22:13:19 kettenis Exp $ */ /* * Copyright (c) 2020 Shivam Waghela @@ -57,6 +57,8 @@ dump_regs(struct trapframe *frame) printf("sepc == 0x%016lx\n", frame->tf_sepc); printf("sstatus == 0x%016lx\n", frame->tf_sstatus); + printf("stval == 0x%016lx\n", frame->tf_stval); + printf("scause == 0x%016lx\n", frame->tf_scause); } void -- 2.20.1