Page MenuHomeFreeBSD

mips: Fix sub-word atomics implementation
ClosedPublic

Authored by jrtc27 on Nov 23 2020, 7:34 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 25 2025, 11:27 AM
Unknown Object (File)
Dec 23 2025, 12:52 AM
Unknown Object (File)
Nov 21 2025, 8:53 AM
Unknown Object (File)
Nov 21 2025, 1:11 AM
Unknown Object (File)
Nov 21 2025, 1:11 AM
Unknown Object (File)
Nov 21 2025, 1:10 AM
Unknown Object (File)
Nov 21 2025, 1:08 AM
Unknown Object (File)
Nov 19 2025, 4:48 AM
Subscribers
None

Details

Summary

These aligned the address but then always used the least significant
bits of the value in memory, which is the wrong half 50% of the time for
16-bit atomics and the wrong quarter 75% of the time for 8-bit atomics.
These bugs were all present in r178172, the commit that added the mips
port, and have remained for its entire existence to date.

Diff Detail

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

Event Timeline

jrtc27 created this revision.
This revision is now accepted and ready to land.Nov 24 2020, 11:43 PM
This revision was automatically updated to reflect the committed changes.