Commit 1ee745fe authored by Anup Patel's avatar Anup Patel Committed by Anup Patel
Browse files

lib: Use AMO instructions whenever __riscv_atomic is defined



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: default avatarAnup Patel <anup.patel@wdc.com>
parent b5be19f9
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment