Re: [PATCH RFC 3/6] Use %gs as the PDA base-segment in the kernel.

H. Peter Anvin
2006-08-28T17:25:53Z

Andi Kleen wrote:
> On Sunday 27 August 2006 19:20, Jeremy Fitzhardinge wrote:
>> Andi Kleen wrote:
>>>> +1: movw GS(%esp), %gs
>>>>
>>> movl is recommended in 32bit mode
>>>
>> arch/i386/kernel/entry.S: Assembler messages:
>> arch/i386/kernel/entry.S:334: Error: suffix or operands invalid for `mov'
>
> Looks like a gas bug to me.
>

Not so much a bug as a misfeature. They changed the meaning of "movw"
and "movl" on segment registers between versions.

Either way, just "mov" should work.

-hpa