Gentoo Archives: gentoo-user

From: Pierre-Yves Rofes <gentoo@×××××.fr>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Anybody Know x86 Assembler?
Date: Sat, 03 Feb 2007 19:51:35
Message-Id: 45C4E7B3.30603@rofes.fr
In Reply to: [gentoo-user] Anybody Know x86 Assembler? by Neil Hodges
1 Neil Hodges a écrit :
2 > Hello,
3 >
4 > Does anybody know x86 assember? The following code is in a kernel
5 > source file, and GCC fails to build it, saying "invalid operands to
6 > 'mov'". What's wrong with it?
7 >
8 > - Neil
9 >
10 > Code:
11 >
12 > asm volatile ("movl %%fs,%0":"=m" (*(int *) &m.fs));
13 > asm volatile ("movl %%gs,%0":"=m" (*(int *) &m.gs));
14 >
15 >
16 Could you post the content of the m data structure, including
17 its type?
18
19 --
20 Pierre-Yves Rofes
21 --
22 gentoo-user@g.o mailing list