]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: Consolidate fences into AMOs for available_harts_lock
authorSean Anderson <seanga2@gmail.com>
Mon, 21 Sep 2020 11:51:39 +0000 (07:51 -0400)
committerAndes <uboot@andestech.com>
Wed, 30 Sep 2020 00:54:52 +0000 (08:54 +0800)
commit309995b315b9ffef999810af212cccb7a50004bc
tree032296314ad07c1732b0a02873604bbb99c5abee
parent768502e2a7f283a715dd1f62e304393a88422545
riscv: Consolidate fences into AMOs for available_harts_lock

We can reduce the number of instructions needed to use available_harts_lock
by using the aq and rl suffixes for AMOs.

Signed-off-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Rick Chen <rick@andestech.com>
arch/riscv/cpu/start.S