HomeFreeBSD

mips: Fix sub-word atomics implementation

Description

mips: Fix sub-word atomics implementation

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.

Reviewed by: jhb (mentor)
Approved by: jhb (mentor)
Differential Revision: https://reviews.freebsd.org/D27343

Details

Provenance
jrtc27Authored on
Reviewer
jhb
Differential Revision
D27343: mips: Fix sub-word atomics implementation
Parents
rS368623: loader: Print autoboot countdown immediately, not at 9
Branches
Unknown
Tags
Unknown