riscv-musl
riscv-musl copied to clipboard
Atomics extension
Hi!
I'm trying to compile and boot Linux on a riscv32 core with no "A" extension so I'm creating a patch set for Linux 5.0.5 and riscv-musl to revert any "depends on A".
Is this sufficient to revert on the musl side to allow ATOMIC_CMPXCHG emulation?
Linux platform requires atomic instructions https://github.com/rv8-io/musl-riscv/commit/7d34a4186e50af7528980d881562fba73f1b4ba2
Changes for Linux 4.20 spotted here
Make RISCV_ISA_A optional for platforms which do not support this... https://github.com/ultraembedded/riscv-linux/commit/6c7b5cb717ce6b784bc29d032328df1a668c0bd0
Re-add RISCV_ATOMIC_CMPXCHG syscall support for atomic emulation https://github.com/ultraembedded/riscv-linux/commit/3f05a5a381fc1aa5e2c19dd08af8a294acfbc560