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 |