mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 06:00:43 +00:00
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 <brad.kim@semifive.com> Reviewed-by: Lukas Auer <lukas@auer.io> Reviewed-by: Leo Liang <ycliang@andestech.com>
This commit is contained in:
parent
5a1a8a63be
commit
fb33eaa3a2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue