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)
Tue, Nov 26, 3:11 AM
Unknown Object (File)
Oct 18 2024, 12:13 PM
Unknown Object (File)
Oct 18 2024, 12:13 PM
Unknown Object (File)
Oct 18 2024, 12:12 PM
Unknown Object (File)
Oct 18 2024, 12:12 PM
Unknown Object (File)
Oct 18 2024, 11:32 AM
Unknown Object (File)
Oct 10 2024, 6:24 AM
Unknown Object (File)
Oct 1 2024, 1:22 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