PATCH: PR gas/1874: mwait/monitor don't work in 64bit

Jan Beulich JBeulich@novell.com
Thu Nov 17 17:05:00 GMT 2005


>>> "H. J. Lu" <hjl@lucon.org> 17.11.05 17:44:06 >>>
>On Thu, Nov 17, 2005 at 10:30:05AM +0100, Jan Beulich wrote:
>> 
>> Regarding the patch, I don't think hard-coding the address size
>> override for 16-bit operation of monitor is appropriate - under
.code16
>> this is not going to produce the desired effect (and likewise is
the
>> opposite 32-bit operation in 16-bit mode then missing the override).
The
>> base problem here is that monitor's address operand, when
explicitly
>
>The opcode is the same for both 32bit and 64bit modes. The address
> size ovverride only changes the size of EAX/RAX. I don't see how
>".code16" can be used with it. As for ".code32", it works fine:

Why shouldn't BIOS code be using this? This would likely require
.code16.

Jan



More information about the Binutils mailing list