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)
Sun, Apr 20, 4:49 AM
Unknown Object (File)
Sun, Mar 23, 12:28 PM
Unknown Object (File)
Feb 23 2025, 4:17 AM
Unknown Object (File)
Feb 22 2025, 3:39 AM
Unknown Object (File)
Feb 21 2025, 11:06 AM
Unknown Object (File)
Feb 19 2025, 10:03 PM
Unknown Object (File)
Feb 5 2025, 11:18 AM
Unknown Object (File)
Feb 2 2025, 2:02 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable