]> git.baikalelectronics.ru Git - uboot.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)
commit4031eb11459e3d91241728a3235d2a2eaebcb821
tree032296314ad07c1732b0a02873604bbb99c5abee
parentad718fcc1137f7fd882ea225bb406b564f905f4f
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