This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]