Page MenuHomeFreeBSD

atomic(9): Implement atomic_testand(clear|set)_ptr
ClosedPublic

Authored by jhb on Nov 15 2024, 8:40 PM.
Tags
None
Referenced Files
F144572701: D47631.id146696.diff
Mon, Feb 9, 6:25 PM
F144525082: D47631.diff
Mon, Feb 9, 4:36 AM
Unknown Object (File)
Sun, Feb 1, 12:12 PM
Unknown Object (File)
Sat, Jan 24, 11:21 PM
Unknown Object (File)
Jan 2 2026, 1:20 AM
Unknown Object (File)
Dec 20 2025, 5:41 AM
Unknown Object (File)
Nov 30 2025, 7:34 AM
Unknown Object (File)
Nov 25 2025, 1:12 PM

Details

Summary

For current architectures, these are just aliases for the existing
operation on the relevant scalar integer.

Obtained from: CheriBSD
Sponsored by: AFRL, DARPA

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Nov 15 2024, 8:40 PM
This revision is now accepted and ready to land.Nov 16 2024, 1:49 AM

All look good except I'm not so sure about 32bit powerpc

Should have noted that this passes make universe (and I've also booted it on some architectures).

sys/powerpc/include/atomic.h
1100

This matches the pattern of other 32-bit powerpc ops of using a cast instead of just mapping the macro directly.