artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d335af9
)
Trapping a riscv illegal instruction shouldn't print a console message
author
jca
<jca@openbsd.org>
Wed, 23 Mar 2022 23:48:30 +0000
(23:48 +0000)
committer
jca
<jca@openbsd.org>
Wed, 23 Mar 2022 23:48:30 +0000
(23:48 +0000)
"Old debugging code obviously" deraadt@
sys/arch/riscv64/riscv64/trap.c
patch
|
blob
|
history
diff --git
a/sys/arch/riscv64/riscv64/trap.c
b/sys/arch/riscv64/riscv64/trap.c
index
08c484d
..
91ace56
100644
(file)
--- a/
sys/arch/riscv64/riscv64/trap.c
+++ b/
sys/arch/riscv64/riscv64/trap.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: trap.c,v 1.1
7 2021/09/03 14:58:25
jca Exp $ */
+/* $OpenBSD: trap.c,v 1.1
8 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;