HomeFreeBSD

arm: Implement atomic_testandset_acq_long as a simple wrapper

Description

arm: Implement atomic_testandset_acq_long as a simple wrapper

Use a memory barrier after calling the existing atomic_testandset_long
rather than using the fcmpset-based fallback version from
<sys/_atomic_subword.h>.

Reviewed by: kib
Sponsored by: AFRL, DARPA
Differential Revision: https://reviews.freebsd.org/D47628

(cherry picked from commit 987c5a1944183cf82884fdb96b0432bd810aa8b9)

Details

Provenance
jhbAuthored on Nov 19 2024, 3:22 PM
Reviewer
kib
Differential Revision
D47628: arm: Implement atomic_testandset_acq_long as a simple wrapper
Parents
rG4380cca46dd9: riscv: Add implementations of atomic_testand(set|clear)_(32|64|long)
Branches
Unknown
Tags
Unknown