HomeFreeBSD

riscv: Implement atomic operations

Description

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

(cherry picked from commit 2183004e14a863d65ca9192df1bea2625e3fdfb3)

Details

Provenance
brAuthored on May 22 2024, 3:07 PM
olceCommitted on Thu, Jan 16, 6:06 PM
Reviewer
mhorne
Differential Revision
D45228: Implement atomic_load_acq_16
Parents
rG3e496c9f10fc: Add function to OSD to get values without taking the lock.
Branches
Unknown
Tags
Unknown