These use amoor and amoand rather than a loop.
Also define atomic_testandset_acq_(64|long) using amoor.aq.
Sponsored by: AFRL, DARPA
Differential D47627
riscv: Add implementations of atomic_testand(set|clear)_(32|64|long) jhb on Nov 15 2024, 8:40 PM. Authored by Tags None Referenced Files
Details These use amoor and amoand rather than a loop. Also define atomic_testandset_acq_(64|long) using amoor.aq. Sponsored by: AFRL, DARPA
Diff Detail
Event TimelineComment Actions I did boot this under qemu, and if you get this wrong the first attempt to create a UMA zone panics due to BIT_TEST_SET_ATOMIC being wrong (I had it wrong the first time).
|