Manfred Spraul wrote:
> Is the Itanium tas implementation correct? I think it should be
> xchg4.aqv instead of just xchg4 - as far as I know a normal atomic
> exchange is is not a memory barrier on Itanium. At least the Linux
> kernel version contains "cmpxchg4.aqv".
Sorry for the noise, I'm wrong:
Itanium automatically uses acquire semantics with xchg.
See top of page 16 on
http://h21007.www2.hp.com/dspp/files/unprotected/itanium/spinlocks.pdf
-- Manfred