From: Dave Matthews <dave@prlng.co.uk>

Description:
The integer overflow instruction (into) and the interrupt instruction with
value 4 (int ) both give rise to SIGBUS signals rather than SIGFPE.  The
problem is that overflow is a trap not a fault (unlike the BOUND instruction).
This commit is contained in:
David Greenman 1994-02-08 12:58:44 +00:00
parent c6d9092e16
commit aae4685ae8
2 changed files with 4 additions and 4 deletions
sys
amd64/amd64
i386/i386

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.34 1994/02/07 07:44:42 davidg Exp $
* $Id: machdep.c,v 1.35 1994/02/08 09:25:53 davidg Exp $
*/
#include "npx.h"
@ -1022,7 +1022,7 @@ init386(first)
setidt(1, &IDTVEC(dbg), SDT_SYS386TGT, SEL_KPL);
setidt(2, &IDTVEC(nmi), SDT_SYS386TGT, SEL_KPL);
setidt(3, &IDTVEC(bpt), SDT_SYS386TGT, SEL_UPL);
setidt(4, &IDTVEC(ofl), SDT_SYS386TGT, SEL_KPL);
setidt(4, &IDTVEC(ofl), SDT_SYS386TGT, SEL_UPL);
setidt(5, &IDTVEC(bnd), SDT_SYS386TGT, SEL_KPL);
setidt(6, &IDTVEC(ill), SDT_SYS386TGT, SEL_KPL);
setidt(7, &IDTVEC(dna), SDT_SYS386TGT, SEL_KPL);

@ -35,7 +35,7 @@
* SUCH DAMAGE.
*
* from: @(#)machdep.c 7.4 (Berkeley) 6/3/91
* $Id: machdep.c,v 1.34 1994/02/07 07:44:42 davidg Exp $
* $Id: machdep.c,v 1.35 1994/02/08 09:25:53 davidg Exp $
*/
#include "npx.h"
@ -1022,7 +1022,7 @@ init386(first)
setidt(1, &IDTVEC(dbg), SDT_SYS386TGT, SEL_KPL);
setidt(2, &IDTVEC(nmi), SDT_SYS386TGT, SEL_KPL);
setidt(3, &IDTVEC(bpt), SDT_SYS386TGT, SEL_UPL);
setidt(4, &IDTVEC(ofl), SDT_SYS386TGT, SEL_KPL);
setidt(4, &IDTVEC(ofl), SDT_SYS386TGT, SEL_UPL);
setidt(5, &IDTVEC(bnd), SDT_SYS386TGT, SEL_KPL);
setidt(6, &IDTVEC(ill), SDT_SYS386TGT, SEL_KPL);
setidt(7, &IDTVEC(dna), SDT_SYS386TGT, SEL_KPL);