From d5e09cb06c8413ff6049c5f9872453a8cf107e79 Mon Sep 17 00:00:00 2001 From: Jeremie Courreges-Anglas Date: Wed, 23 Mar 2022 23:48:31 +0000 Subject: 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(-) (limited to 'sys/arch/riscv64') 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; -- cgit v1.2.3