summaryrefslogtreecommitdiff
path: root/sys/arch/riscv64
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-03-23 23:48:31 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2022-03-23 23:48:31 +0000
commitd5e09cb06c8413ff6049c5f9872453a8cf107e79 (patch)
treefe64d7a3be1c08c3b65a68905a4481fd974fc2e5 /sys/arch/riscv64
parent81f14c9c9879263712f9f9165224134203c25601 (diff)
Trapping a riscv illegal instruction shouldn't print a console message
"Old debugging code obviously" deraadt@
Diffstat (limited to 'sys/arch/riscv64')
-rw-r--r--sys/arch/riscv64/riscv64/trap.c4
1 files changed, 1 insertions, 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 <shivamwaghela@gmail.com>
@@ -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;