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
Unknown Object (File)
Wed, Apr 29, 6:39 AM
Unknown Object (File)
Wed, Apr 29, 6:32 AM
Unknown Object (File)
Wed, Apr 29, 5:24 AM
Unknown Object (File)
Wed, Apr 29, 5:17 AM
Unknown Object (File)
Sun, Apr 19, 4:17 PM
Unknown Object (File)
Sun, Apr 19, 4:16 PM
Unknown Object (File)
Sat, Apr 18, 2:02 AM
Unknown Object (File)
Fri, Apr 17, 11:56 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60623
Build 57507: arc lint + arc unit

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.