summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Kim <[email protected]>2020-11-13 20:47:51 +0900
committerAndes <[email protected]>2020-12-14 15:16:34 +0800
commitfb33eaa3a26cdc37826390b6db223509230ae8e2 (patch)
treeb25433aa4126fdba6a61ab50d6afcccdcb60a582
parent5a1a8a63be8f7262a300eddafb18020926b12fb6 (diff)
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 <[email protected]> Reviewed-by: Lukas Auer <[email protected]> Reviewed-by: Leo Liang <[email protected]>
-rw-r--r--arch/riscv/cpu/start.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/riscv/cpu/start.S b/arch/riscv/cpu/start.S
index bbc737ed9a2..8589509e012 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