Page MenuHomeFreeBSD

Add LSE-based atomic(9) implementations.
ClosedPublic

Authored by markj on Jan 22 2020, 8:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 24, 8:57 PM
Unknown Object (File)
Sun, Dec 21, 1:21 PM
Unknown Object (File)
Nov 20 2025, 10:52 PM
Unknown Object (File)
Nov 20 2025, 10:51 PM
Unknown Object (File)
Nov 20 2025, 10:51 PM
Unknown Object (File)
Nov 20 2025, 10:50 PM
Unknown Object (File)
Nov 20 2025, 10:43 PM
Unknown Object (File)
Nov 15 2025, 11:53 PM

Details

Summary

These make use of the cas*, ld* and swp instructions added in ARMv8.1.
Testing shows them to be significantly more performant than LL/SC-based
implementations.

These were mostly written by Ali Saidi. I did atomic_testand*() and
made atomic_(set|clear|add|subtract)_* a bit simpler.

No functional change here since the wrappers still unconditionally
select the _llsc variants.

Submitted by: Ali Saidi <alisaidi@amazon.com> (original version)

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable