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
1 Hello,
2
3 Does anybody know x86 assember? The following code is in a kernel
4 source file, and GCC fails to build it, saying "invalid operands to
5 'mov'". What's wrong with it?
6
7 - Neil
8
9 Code:
10
11 asm volatile ("movl %%fs,%0":"=m" (*(int *) &m.fs));
12 asm volatile ("movl %%gs,%0":"=m" (*(int *) &m.gs));
13
14 --
15 gentoo-user@g.o mailing list

Replies

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