PATCH: Check for lock without a lockable instruction

H.J. Lu hjl.tools@gmail.com
Mon Nov 16 21:43:00 GMT 2009


On Mon, Nov 16, 2009 at 1:39 PM, Alan Modra <amodra@bigpond.net.au> wrote:
> On Thu, Nov 12, 2009 at 10:54:19AM -0800, H.J. Lu wrote:
>> The lock prefix is valid only on add, adc, and, btc, btr, bts, cmpxchg,
>> cmpxch8b, dec, inc, neg, not, or, sbb, sub, xor, xadd and xchg with
>> a memory operand.
>
> Is this true for old processors?  My recollection is that 286 and
> earlier do not care.
>

I don't know.  One can always use ".byte 0xf0".

-- 
H.J.



More information about the Binutils mailing list