Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261883AbVC3VPA (ORCPT ); Wed, 30 Mar 2005 16:15:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261829AbVC3VME (ORCPT ); Wed, 30 Mar 2005 16:12:04 -0500 Received: from rwcrmhc11.comcast.net ([204.127.198.35]:20906 "EHLO rwcrmhc11.comcast.net") by vger.kernel.org with ESMTP id S261175AbVC3VLH (ORCPT ); Wed, 30 Mar 2005 16:11:07 -0500 Date: Wed, 30 Mar 2005 13:11:02 -0800 From: "H. J. Lu" To: linux-os Cc: Linus Torvalds , binutils@sources.redhat.com, Andi Kleen , linux kernel Subject: Re: i386/x86_64 segment register issuses (Re: PATCH: Fix x86 segment register access) Message-ID: <20050330211102.GB15384@lucon.org> References: <20050326020506.GA8068@lucon.org> <20050327222406.GA6435@lucon.org> <20050330015312.GA27309@lucon.org> <20050330040017.GA29523@lucon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 776 Lines: 20 On Wed, Mar 30, 2005 at 11:23:25AM -0500, linux-os wrote: > > So if there are any "movw (mem), %ds" and > "movw %ds, (mem)" in the code. The sizeof(mem) > needs to be 32-bits and the 'w' needs to be removed. > Otherwise, we are wasting CPU cycles and/or fooling > ourselves. GAS needs to continue to generate whatever > it was fed, with appropriate diagnostics if it > is fed the wrong stuff. FYI, gas hasn't generated 0x66 on "movw (%eax),%ds" for a long time and started doing it on "movw %ds,(%eax)" since Nov. 4, 2004. H.J. - 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/