* [gentoo-user] Anybody Know x86 Assembler?
@ 2007-01-27 6:29 Neil Hodges
2007-02-03 19:51 ` Pierre-Yves Rofes
0 siblings, 1 reply; 2+ messages in thread
From: Neil Hodges @ 2007-01-27 6:29 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [gentoo-user] Anybody Know x86 Assembler?
2007-01-27 6:29 [gentoo-user] Anybody Know x86 Assembler? Neil Hodges
@ 2007-02-03 19:51 ` Pierre-Yves Rofes
0 siblings, 0 replies; 2+ messages in thread
From: Pierre-Yves Rofes @ 2007-02-03 19:51 UTC (permalink / raw
To: gentoo-user
Neil Hodges a écrit :
> 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));
>
>
Could you post the content of the m data structure, including
its type?
--
Pierre-Yves Rofes
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-03 19:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-27 6:29 [gentoo-user] Anybody Know x86 Assembler? Neil Hodges
2007-02-03 19:51 ` Pierre-Yves Rofes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox