diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-02-08 23:23:58 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1997-02-08 23:23:58 +0000 |
commit | 4e4cedd75f2b75d434f5d46cd42b7ae45f025454 (patch) | |
tree | bdb6373f3fb15c9eae751860be4a357ed92ca574 | |
parent | 3ce3f30052216e69d9e894665dc311ae6207c39b (diff) |
Give correct signal information on integer overflow
-rw-r--r-- | sys/arch/i386/i386/trap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index be405b5e71b..c264eae7404 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.18 1997/02/04 17:04:37 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.19 1997/02/08 23:23:57 tholo Exp $ */ /* $NetBSD: trap.c,v 1.95 1996/05/05 06:50:02 mycroft Exp $ */ #undef DEBUG @@ -338,7 +338,7 @@ trap(frame) trapsignal(p, SIGFPE, type &~ T_USER, FPE_FLTSUB, (caddr_t)rcr2()); goto out; case T_OFLOW|T_USER: - trapsignal(p, SIGFPE, type &~ T_USER, FPE_FLTOVF, (caddr_t)rcr2()); + trapsignal(p, SIGFPE, type &~ T_USER, FPE_INTOVF, (caddr_t)rcr2()); goto out; case T_DIVIDE|T_USER: trapsignal(p, SIGFPE, type &~ T_USER, FPE_INTDIV, (caddr_t)rcr2()); |