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
F132129681: D47631.diff
Tue, Oct 14, 12:36 AM
Unknown Object (File)
Mon, Oct 13, 7:30 AM
Unknown Object (File)
Mon, Oct 13, 7:30 AM
Unknown Object (File)
Sun, Oct 12, 7:17 PM
Unknown Object (File)
Wed, Oct 8, 11:40 PM
Unknown Object (File)
Aug 14 2025, 10:33 PM
Unknown Object (File)
Aug 8 2025, 7:15 PM
Unknown Object (File)
Aug 8 2025, 7:09 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.