From: Brad Kim Date: Fri, 13 Nov 2020 11:47:51 +0000 (+0900) Subject: riscv: fix the wrong swap value register X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=fb33eaa3a26cdc37826390b6db223509230ae8e2;p=u-boot.git riscv: fix the wrong swap value register Not s2 register, t1 register is correct Fortunately, it works because t1 register has a garbage value Signed-off-by: Brad Kim Reviewed-by: Lukas Auer Reviewed-by: Leo Liang --- diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S index bbc737ed9a..8589509e01 100644 --- a/arch/riscv/cpu/start.S +++ b/arch/riscv/cpu/start.S @@ -123,7 +123,7 @@ call_board_init_f_0: * wait for initialization to complete. */ la t0, hart_lottery - li s2, 1 + li t1, 1 amoswap.w s2, t1, 0(t0) bnez s2, wait_for_gd_init #else