Page MenuHomeFreeBSD

atomic_common.h: Fix the volatile qualifier placement in atomic_load_ptr
ClosedPublic

Authored by jrtc27 on Sep 20 2020, 10:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 27 2026, 9:52 AM
Unknown Object (File)
Apr 22 2026, 2:19 PM
Unknown Object (File)
Apr 17 2026, 11:40 AM
Unknown Object (File)
Apr 16 2026, 9:38 PM
Unknown Object (File)
Apr 14 2026, 1:51 PM
Unknown Object (File)
Apr 11 2026, 1:42 PM
Unknown Object (File)
Apr 11 2026, 4:13 AM
Unknown Object (File)
Apr 9 2026, 2:15 AM
Subscribers

Details

Summary

This was broken in r357940 which introduced the __typeof use. We need
the volatile qualifier to be on the pointee not the pointer otherwise it
does nothing. This was found by mhorne in D26498, noticing there was a
problem (a spin loop condition was hoisted for RISC-V boot code) but not
the root cause of it.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33678
Build 30916: arc lint + arc unit