summaryrefslogtreecommitdiff
path: root/sys/arch/vax
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-01-30 21:26:20 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-01-30 21:26:20 +0000
commitb222cad611d176c0b88ddbc610bd2a8d2b14d6c2 (patch)
treeb45e00e016ea2522a465ad5003356a342fbe649a /sys/arch/vax
parenteb5d0663b74366fdf3577bc7a3f7f6881e867933 (diff)
When delivering SIGFOO, make sure the siginfo code is a FOO_xxx constant;
also deliver SIGILL/ILL_COPROC rather than SIGFPE/FPE_FLTINV for disabled or missing floating point support.
Diffstat (limited to 'sys/arch/vax')
-rw-r--r--sys/arch/vax/vax/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/vax/vax/trap.c b/sys/arch/vax/vax/trap.c
index 9774a6b33ad..2f164d1c27c 100644
--- a/sys/arch/vax/vax/trap.c
+++ b/sys/arch/vax/vax/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.33 2005/12/23 19:49:00 miod Exp $ */
+/* $OpenBSD: trap.c,v 1.34 2006/01/30 21:26:19 miod Exp $ */
/* $NetBSD: trap.c,v 1.47 1999/08/21 19:26:20 matt Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@@ -298,13 +298,13 @@ if(faultdebug)printf("trap accflt type %lx, code %lx, pc %lx, psl %lx\n",
break;
case T_XFCFLT|T_USER:
- typ = ILL_ILLOPC; /* XXX hmm */
+ typ = EMT_TAGOVF;
sig = SIGEMT;
break;
case T_ARITHFLT|T_USER:
sv.sival_int = frame->code;
- typ = 0; /* XXX */
+ typ = FPE_FLTINV;
sig = SIGFPE;
break;