summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-11-02 13:49:23 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-11-02 13:49:23 +0000
commita66933a414d04594163d9400cf43134cc20cb216 (patch)
tree770600a5c054e319da03b5e3ea2894010f99e0f1 /sys/arch/hp300
parent977d4080f17eb5f315285d53a5060fee73d9a424 (diff)
Use sigexit() instead of rolling our own version.
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r--sys/arch/hp300/hp300/trap.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/arch/hp300/hp300/trap.c b/sys/arch/hp300/hp300/trap.c
index f33c678e5bb..d543792ab26 100644
--- a/sys/arch/hp300/hp300/trap.c
+++ b/sys/arch/hp300/hp300/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.62 2012/12/31 06:46:13 guenther Exp $ */
+/* $OpenBSD: trap.c,v 1.63 2013/11/02 13:49:22 miod Exp $ */
/* $NetBSD: trap.c,v 1.57 1998/02/16 20:58:31 thorpej Exp $ */
/*
@@ -316,16 +316,8 @@ dopanic:
*/
printf("pid %d: kernel %s exception\n", p->p_pid,
type==T_COPERR ? "coprocessor" : "format");
- type |= T_USER;
- p->p_sigacts->ps_sigact[SIGILL] = SIG_DFL;
- i = sigmask(SIGILL);
- p->p_sigacts->ps_sigignore &= ~i;
- p->p_sigacts->ps_sigcatch &= ~i;
- p->p_sigmask &= ~i;
- i = SIGILL;
- ucode = frame.f_format; /* XXX was ILL_RESAD_FAULT */
- typ = ILL_COPROC;
- v = frame.f_pc;
+ sigexit(p, SIGILL);
+ /* NOTREACHED */
break;
case T_COPERR|T_USER: /* user coprocessor violation */