History log of /netbsd/common/lib/libc/arch/arm/atomic/sync_bool_compare_and_swap_2.S (Results 1 – 4 of 4)
Revision Date Author Comments
# 77acbbc0 28-Jul-2021 skrll <skrll@NetBSD.org>

Remove memory barriers from the atomic_ops(3) atomic operations. They're
not needed for correctness.

Add the correct memory barriers to the gcc legacy __sync built-in
functions for atomic memory ac

Remove memory barriers from the atomic_ops(3) atomic operations. They're
not needed for correctness.

Add the correct memory barriers to the gcc legacy __sync built-in
functions for atomic memory access. From the gcc documentation:

In most cases, these built-in functions are considered a full barrier.
That is, no memory operand is moved across the operation, either forward
or backward. Further, instructions are issued as necessary to prevent the
processor from speculating loads across the operation and from queuing
stores after the operation.

type __sync_lock_test_and_set (type *ptr, type value, ...)

This built-in function is not a full barrier, but rather an acquire
barrier. This means that references after the operation cannot move to
(or be speculated to) before the operation, but previous memory stores
may not be globally visible yet, and previous memory loads may not yet
be satisfied.

void __sync_lock_release (type *ptr, ...)

This built-in function is not a full barrier, but rather a release
barrier. This means that all previous memory stores are globally
visible, and all previous memory loads have been satisfied, but
following memory reads are not prevented from being speculated to
before the barrier.

show more ...


# d8e3b6ce 17-May-2015 justin <justin@NetBSD.org>

Move arm sync_* changes to Makefile.inc


# 7966a6de 17-May-2015 justin <justin@NetBSD.org>

Do not build arm toolchain symbols in the rump kernel

These symbols will be provided at link time and will be
duplicate symbols in rump kernel and libc if defined.

Many have been fixed previously,

Do not build arm toolchain symbols in the rump kernel

These symbols will be provided at link time and will be
duplicate symbols in rump kernel and libc if defined.

Many have been fixed previously, but these were missed
as did not have a test.

show more ...


# 91761bee 08-Nov-2013 matt <matt@NetBSD.org>

Add support for the gcc __sync builtins.
Note that these need earmv6 or later to get the ldrex/strex instructions