summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-03 17:35:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-02-03 17:35:10 +0000
commitf19961cd11ea4937847a8f74b053b63029e5ae9a (patch)
tree32d16e4f5f92785ab1cb79897d1c21bd67cc05d3 /sys
parent277710bff38f08d1d0ed133a610785a94f156764 (diff)
for SIGxxx always use xxx_* types as error code
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/i386/trap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c
index 1d52f0da160..da1322b4b69 100644
--- a/sys/arch/i386/i386/trap.c
+++ b/sys/arch/i386/i386/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.15 1997/02/01 21:53:29 deraadt Exp $ */
+/* $OpenBSD: trap.c,v 1.16 1997/02/03 17:35:09 deraadt Exp $ */
/* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */
#undef DEBUG
@@ -285,7 +285,7 @@ trap(frame)
goto out;
case T_STKFLT|T_USER:
- trapsignal(p, SIGSEGV, type &~ T_USER, ILL_BADSTK, (caddr_t)rcr2());
+ trapsignal(p, SIGSEGV, type &~ T_USER, SEGV_MAPERR, (caddr_t)rcr2());
goto out;
case T_ALIGNFLT|T_USER:
@@ -297,7 +297,7 @@ trap(frame)
goto out;
case T_FPOPFLT|T_USER: /* coprocessor operand fault */
- trapsignal(p, SIGILL, type &~ T_USER, FPE_FLTINV, (caddr_t)rcr2());
+ trapsignal(p, SIGILL, type &~ T_USER, ILL_COPROC, (caddr_t)rcr2());
goto out;
case T_ASTFLT|T_USER: /* Allow process switch */