Skip to content
Commit 5ef3fe4c authored by Will Deacon's avatar Will Deacon
Browse files

arm64: Avoid redundant type conversions in xchg() and cmpxchg()



Our atomic instructions (either LSE atomics of LDXR/STXR sequences)
natively support byte, half-word, word and double-word memory accesses
so there is no need to mask the data register prior to being stored.

Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 39624469
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment