mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-29 01:21:56 +01:00

We should use AMO instructions whenever __riscv_atomic is defined (i.e. atomics are supported). We use LR/SC only when __riscv_atomic is not defined. Signed-off-by: Anup Patel <anup.patel@wdc.com>