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)
Mar 20 2024, 4:01 PM
Unknown Object (File)
Dec 20 2023, 5:37 AM
Unknown Object (File)
Nov 10 2023, 2:13 PM
Unknown Object (File)
Nov 8 2023, 9:42 AM
Unknown Object (File)
Nov 7 2023, 11:43 AM
Unknown Object (File)
Nov 7 2023, 3:14 AM
Unknown Object (File)
Oct 24 2023, 9:33 AM
Unknown Object (File)
Oct 12 2023, 12:52 AM

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