From 7cd0ae66b2c452040949687af40d6204e5849fb1 Mon Sep 17 00:00:00 2001 From: dsl Date: Fri, 7 Feb 2014 19:32:50 +0000 Subject: [PATCH] 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. --- sys/arch/i386/i386/trap.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/arch/i386/i386/trap.c b/sys/arch/i386/i386/trap.c index 4da46574de19..8875da548338 100644 --- a/sys/arch/i386/i386/trap.c +++ b/sys/arch/i386/i386/trap.c @@ -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 -__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 @@ xmm_si_code(struct lwp *l) return FPE_FLTOVF; case EN_SW_UNDERFLOW: return FPE_FLTUND; - case EN_SW_DATACHAIN: - return FPE_FLTSUB; case 0: default: return 0;