Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262454AbTEIL0T (ORCPT ); Fri, 9 May 2003 07:26:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262459AbTEIL0T (ORCPT ); Fri, 9 May 2003 07:26:19 -0400 Received: from mrt-aod.iram.es ([150.214.224.146]:26124 "EHLO mrt-lx16.iram.es") by vger.kernel.org with ESMTP id S262454AbTEIL0R (ORCPT ); Fri, 9 May 2003 07:26:17 -0400 Date: Fri, 9 May 2003 10:56:23 +0000 From: paubert To: Andi Kleen Cc: linux-kernel@vger.kernel.org, Linus Torvalds , David Mosberger Subject: Re: [PATCH] Mask mxcsr according to cpu features. Message-ID: <20030509105622.B16311@mrt-lx16.iram.es> References: <20030509004200.A22795@mrt-lx16.iram.es> <20030509022417.GB15829@Wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030509022417.GB15829@Wotan.suse.de> User-Agent: Mutt/1.3.22.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1555 Lines: 38 On Fri, May 09, 2003 at 04:24:17AM +0200, Andi Kleen wrote: > On Fri, May 09, 2003 at 12:42:01AM +0000, paubert wrote: > > > > [CC'ed to x86_64 and ia64 maintainers because they might have the > > same issues. For existing x86_64 processors, s/0xffbf/0xffff/ in > > arch/x86-64/ia32/{fpu32,ptrace32}.c might be sufficient] > > > > With SSE2, mxcsr bit 6 is defined as controlling whether > > denormals should be treated as zeroes or not. Setting it > > no more causes an exception, but with the current code it > > would be cleared at every signal return which is a bit harsh. > > > > The following patch fixes this (2.5, but easily ported to 2.4). > > x86-64 does it in a different way. It just handles the > possible exception on FXRSTOR with an __ex_table handler. > With that all the mxcsr masking can be dropped. > > It was already this way for 64bit programs, I know, that's why I only listed files in the ia32 directory > but the 32bit emulation still masks. I'm not sure I can > change that - in theory it could break existing programs. I only ask you to change the mask to reflect what the hardware allows, not removing the masking, which could have more corner cases side effects. Clearing the DAZ bit of every 32 bit program as soon as it receives a signal can't be right. Gabriel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/