HomeFreeBSD

riscv: Add implementations of atomic_testand(set|clear)_(32|64|long)

Description

riscv: Add implementations of atomic_testand(set|clear)_(32|64|long)

These use amoor and amoand rather than a loop.

Also define atomic_testandset_acq_(64|long) using amoor.aq.

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

(cherry picked from commit a474e53d03ca8c78696fc222520de7d6876cc530)

Details

Provenance
jhbAuthored on Nov 19 2024, 3:19 PM
Reviewer
mhorne
Differential Revision
D47627: riscv: Add implementations of atomic_testand(set|clear)_(32|64|long)
Parents
rGfa95268aeb8a: Remove bogus detach routines
Branches
Unknown
Tags
Unknown