From aae4685ae8b370add873e100b7da9afb8f9aec15 Mon Sep 17 00:00:00 2001 From: David Greenman Date: Tue, 8 Feb 1994 12:58:44 +0000 Subject: [PATCH] From: Dave Matthews Description: The integer overflow instruction (into) and the interrupt instruction with value 4 (int #4) both give rise to SIGBUS signals rather than SIGFPE. The problem is that overflow is a trap not a fault (unlike the BOUND instruction). --- sys/amd64/amd64/machdep.c | 4 ++-- sys/i386/i386/machdep.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 7d5bc8157e90..f1070f25137c 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -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); diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 7d5bc8157e90..f1070f25137c 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -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);