From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.62)
	(envelope-from <gentoo-user+bounces-59116-garchives=archives.gentoo.org@gentoo.org>)
	id 1HAh95-00080H-HI
	for garchives@archives.gentoo.org; Sat, 27 Jan 2007 06:34:39 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.8) with SMTP id l0R6XVqM003621;
	Sat, 27 Jan 2007 06:33:31 GMT
Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.232])
	by robin.gentoo.org (8.13.8/8.13.8) with ESMTP id l0R6TX0A031387
	for <gentoo-user@lists.gentoo.org>; Sat, 27 Jan 2007 06:29:33 GMT
Received: by nz-out-0506.google.com with SMTP id s1so841102nze
        for <gentoo-user@lists.gentoo.org>; Fri, 26 Jan 2007 22:29:33 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:date:from:to:subject:message-id:mail-followup-to:mime-version:content-type:content-disposition:user-agent;
        b=byAXYMp8csJK3s5COQP7OBuGn+O8BYwvo4ENOY39ToFcNuepD/trZhcbpDlcuIb1N38VTNqpz6OJUolcxr1BXf0CVYjdypBawig+jzMlBuR1nPo/slxUTyVwsx+MAth14QwTJ36ttSJ+CZ+wWTl5LX4XvSjZg1MA3OCXrRh5zis=
Received: by 10.64.156.3 with SMTP id d3mr6348249qbe.1169879372893;
        Fri, 26 Jan 2007 22:29:32 -0800 (PST)
Received: from gmail.com ( [67.160.57.222])
        by mx.google.com with ESMTP id e15sm5678240qbe.2007.01.26.22.29.31;
        Fri, 26 Jan 2007 22:29:32 -0800 (PST)
Received: by gmail.com (nbSMTP-1.00) for uid 1000
	(using TLSv1/SSLv3 with cipher DES-CBC3-SHA (168/168 bits))
	kenji.malist@gmail.com; Fri, 26 Jan 2007 22:29:31 -0800 (PST)
Date: Fri, 26 Jan 2007 22:29:30 -0800
From: Neil Hodges <kenji.malist@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Anybody Know x86 Assembler?
Message-ID: <20070127062930.GA7194@bob>
Mail-Followup-To: gentoo-user@lists.gentoo.org
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.13 (2006-08-11)
X-Archives-Salt: 57995ce0-63dd-44a7-bd7a-47cbdd872a13
X-Archives-Hash: 09411e4578607a8b8af97199dd758dae

Hello,

Does anybody know x86 assember?  The following code is in a kernel
source file, and GCC fails to build it, saying "invalid operands to
'mov'".  What's wrong with it?

- Neil

Code:

asm volatile ("movl %%fs,%0":"=m" (*(int *) &m.fs)); 
asm volatile ("movl %%gs,%0":"=m" (*(int *) &m.gs));

-- 
gentoo-user@gentoo.org mailing list