From: kettenis Date: Mon, 26 Jul 2021 22:13:19 +0000 (+0000) Subject: Print a few more registers in dump_regs(). X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fec4a2f716d98cc7f863779aca1da4d763575caa;p=openbsd Print a few more registers in dump_regs(). --- 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