Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/i386/i386 PR/43655: Taylor R Campbell: Incorrect si...
details: https://anonhg.NetBSD.org/src/rev/0755747fa5c7
branches: trunk
changeset: 756595:0755747fa5c7
user: christos <christos%NetBSD.org@localhost>
date: Sun Jul 25 19:19:06 2010 +0000
description:
PR/43655: Taylor R Campbell: Incorrect siginfo code's for integer zero
divide and overflow.
diffstat:
sys/arch/i386/i386/trap.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r 8b9f59bfe2cb -r 0755747fa5c7 sys/arch/i386/i386/trap.c
--- a/sys/arch/i386/i386/trap.c Sun Jul 25 19:16:18 2010 +0000
+++ b/sys/arch/i386/i386/trap.c Sun Jul 25 19:19:06 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: trap.c,v 1.257 2010/05/04 23:27:13 jym Exp $ */
+/* $NetBSD: trap.c,v 1.258 2010/07/25 19:19:06 christos Exp $ */
/*-
* Copyright (c) 1998, 2000, 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.257 2010/05/04 23:27:13 jym Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.258 2010/07/25 19:19:06 christos Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -603,14 +603,16 @@
ksi.ksi_code = xmm_si_code(l);
break;
case T_BOUND|T_USER:
+ ksi.ksi_code = FPE_FLTSUB;
+ break;
case T_OFLOW|T_USER:
- ksi.ksi_code = FPE_FLTOVF;
+ ksi.ksi_code = FPE_INTOVF;
break;
case T_DIVIDE|T_USER:
- ksi.ksi_code = FPE_FLTDIV;
+ ksi.ksi_code = FPE_INTDIV;
break;
case T_ARITHTRAP|T_USER:
- ksi.ksi_code = FPE_INTOVF;
+ ksi.ksi_code = npxtrap(l);
break;
default:
ksi.ksi_code = 0;
Home |
Main Index |
Thread Index |
Old Index