freebsd-dev/lib/libc_r/arch/ia64
Marcel Moolenaar f8739dd5f9 Implement the lock with a cmpxchg instruction instead of a xchg.
Both are atomic, but the cmpxchg has memory ordering hints. We
give this acquire semantics.

NOTE: The unlock in libc_r is implemented by a "normal" assign
statement. This is not correct on ia64 due to the memory ordering
characteristics of the architecture. We need release semantics
for an unlock.
2002-11-16 17:05:06 +00:00
..
_atomic_lock.S Implement the lock with a cmpxchg instruction instead of a xchg. 2002-11-16 17:05:06 +00:00