Rename the DIV0 traps to avoid confusion with the usage on the sparc
port: T_IDIV0 is the hardware trap generated on integer division by zero, T_DIV0 is the software trap used to signal the same event. This makes 32 bit kernels able to run sparc code with the v7 multiply/ divide library, as well as with the v8 one.
This commit is contained in:
parent
099e41a34e
commit
fbc8c025c2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kgdb_stub.c,v 1.9 2003/01/18 06:55:23 thorpej Exp $ */
|
||||
/* $NetBSD: kgdb_stub.c,v 1.10 2003/01/21 20:42:02 martin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -276,6 +276,7 @@ computeSignal(type)
|
|||
|
||||
case T_ILLINST:
|
||||
case T_PRIVINST:
|
||||
case T_IDIV0:
|
||||
case T_DIV0:
|
||||
sigval = SIGILL;
|
||||
break;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_32_machdep.c,v 1.9 2003/01/18 06:55:26 thorpej Exp $ */
|
||||
/* $NetBSD: svr4_32_machdep.c,v 1.10 2003/01/21 20:42:03 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
|
@ -391,7 +391,7 @@ svr4_32_getsiginfo(si, sig, code, addr)
|
|||
si->si_code = SVR4_EMT_TAGOVF;
|
||||
break;
|
||||
|
||||
case T_DIV0:
|
||||
case T_IDIV0:
|
||||
si->si_code = SVR4_FPE_INTDIV;
|
||||
break;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: svr4_machdep.c,v 1.27 2003/01/18 06:55:26 thorpej Exp $ */
|
||||
/* $NetBSD: svr4_machdep.c,v 1.28 2003/01/21 20:42:03 martin Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1994 The NetBSD Foundation, Inc.
|
||||
|
@ -414,7 +414,7 @@ svr4_getsiginfo(si, sig, code, addr)
|
|||
si->si_code = SVR4_EMT_TAGOVF;
|
||||
break;
|
||||
|
||||
case T_DIV0:
|
||||
case T_IDIV0:
|
||||
si->si_code = SVR4_FPE_INTDIV;
|
||||
break;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: trap.c,v 1.87 2003/01/18 06:55:26 thorpej Exp $ */
|
||||
/* $NetBSD: trap.c,v 1.88 2003/01/21 20:42:03 martin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
|
||||
|
@ -843,6 +843,7 @@ badtrap:
|
|||
trapsignal(l, SIGTRAP, 0);
|
||||
break;
|
||||
|
||||
case T_IDIV0:
|
||||
case T_DIV0:
|
||||
ADVANCE;
|
||||
trapsignal(l, SIGFPE, FPE_INTDIV_TRAP);
|
||||
|
|
Loading…
Reference in New Issue