From 4d577e649fae3e218f0dd9be1a5641c52af8cb22 Mon Sep 17 00:00:00 2001 From: jca Date: Wed, 23 Mar 2022 23:48:30 +0000 Subject: [PATCH] Trapping a riscv illegal instruction shouldn't print a console message "Old debugging code obviously" deraadt@ --- sys/arch/riscv64/riscv64/trap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/arch/riscv64/riscv64/trap.c b/sys/arch/riscv64/riscv64/trap.c index 08c484deabb..91ace56c274 100644 --- a/sys/arch/riscv64/riscv64/trap.c +++ b/sys/arch/riscv64/riscv64/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.17 2021/09/03 14:58:25 jca Exp $ */ +/* $OpenBSD: trap.c,v 1.18 2022/03/23 23:48:30 jca Exp $ */ /* * Copyright (c) 2020 Shivam Waghela @@ -153,8 +153,6 @@ do_trap_user(struct trapframe *frame) fpu_load(p); break; } - printf("ILL at %lx scause %lx stval %lx\n", frame->tf_sepc, - frame->tf_scause, frame->tf_stval); sv.sival_ptr = (void *)frame->tf_stval; trapsignal(p, SIGILL, 0, ILL_ILLTRP, sv); break; -- 2.20.1