riscv: Implement atomic operations
authorRuslan Bukin <br@FreeBSD.org>
Wed, 22 May 2024 15:07:27 +0000 (16:07 +0100)
committerRuslan Bukin <br@FreeBSD.org>
Wed, 22 May 2024 15:45:11 +0000 (16:45 +0100)
commit2183004e14a863d65ca9192df1bea2625e3fdfb3
treec8e11ad23b0b9f6254b4774334c168b305776896
parentddd0d4f4cd65341a07bb3bb833dee7982018fd60
riscv: Implement atomic operations

Implement atomic_load_acq_16, atomic_store_rel_16.

These are needed by bhyve(8) PCIe bus emulation code.

Group 16-bit atomic functions similarly to 32 and 64-bit.

Reviewed by: mhorne
Differential Revision: https://reviews.freebsd.org/D45228
sys/riscv/include/atomic.h