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 Remove the splurious check for EN_SW_DATA...



details:   https://anonhg.NetBSD.org/src/rev/826d96c5ae72
branches:  trunk
changeset: 326620:826d96c5ae72
user:      dsl <dsl%NetBSD.org@localhost>
date:      Fri Feb 07 19:32:50 2014 +0000

description:
Remove the splurious check for EN_SW_DATACHAIN when looking at mxcsr traps.
The relevant bit is always masked out higher up.
The only place I can find a reference to a 'datachain' error is for the
  weitek 1167 fpu. Even the 8087 has the corresponding bit of the x87
  status reserved.
Quite why it has appeared here is anybodies guess.

diffstat:

 sys/arch/i386/i386/trap.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 644dc5fc459d -r 826d96c5ae72 sys/arch/i386/i386/trap.c
--- a/sys/arch/i386/i386/trap.c Fri Feb 07 17:23:35 2014 +0000
+++ b/sys/arch/i386/i386/trap.c Fri Feb 07 19:32:50 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trap.c,v 1.269 2014/01/26 19:16:17 dsl Exp $   */
+/*     $NetBSD: trap.c,v 1.270 2014/02/07 19:32:50 dsl 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.269 2014/01/26 19:16:17 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.270 2014/02/07 19:32:50 dsl Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -220,8 +220,6 @@
                return FPE_FLTOVF;
        case EN_SW_UNDERFLOW:
                return FPE_FLTUND;
-       case EN_SW_DATACHAIN:
-               return FPE_FLTSUB;
        case 0:
        default:
                return 0;



Home | Main Index | Thread Index | Old Index