opnsense-src/lib/libc_r/arch
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
..
alpha $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
amd64 Change #include "DEFS.h" to <machine/asm.h>. 2001-10-25 01:30:54 +00:00
i386 Change #include "DEFS.h" to <machine/asm.h>. 2001-10-25 01:30:54 +00:00
ia64 Implement the lock with a cmpxchg instruction instead of a xchg. 2002-11-16 17:05:06 +00:00