Gentoo Archives: gentoo-user

From: Neil Hodges <kenji.malist@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Anybody Know x86 Assembler?
Date: Sat, 27 Jan 2007 06:34:39
Message-Id: 20070127062930.GA7194@bob
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@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Anybody Know x86 Assembler? Pierre-Yves Rofes <gentoo@×××××.fr>