Re: [GIT PULL] Add two-byte cmpxchg emulation function for v7.4

From: Jan Engelhardt

Date: Fri Oct 23 2026 - 07:28:11 EST



On Saturday 2026-10-17 05:51, Paul E. McKenney wrote:
>
>Add emulation of two-byte cmpxchg()
>
>These commits add a cmpxchg_emu_u16() function that emulates two-byte
>cmpxchg() in terms of four-byte cmpxchg() [...]
>namely sh, arc, csky, and xtensa.
>
>There is reason to believe that these systems will soon no longer be
>supported by Linux.

riscv64 also only has two exchange operations
(lr.w.aqrl/lr.d.aqrl/sc.w.rl/sc.d.rl).
(atomic_compare_exchange_strong with uint8/16_t, in userspace, gets
replaced by the compiler to a lot more instructions thanks to
implied -finline-atomics.)

Are you saying riscv64 is going to go unsupported too? ;-)