git.openpandora.org
/
pandora-u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a1a8a6
)
riscv: fix the wrong swap value register
author
Brad Kim
<brad.kim@semifive.com>
Fri, 13 Nov 2020 11:47:51 +0000
(20:47 +0900)
committer
Andes
<uboot@andestech.com>
Mon, 14 Dec 2020 07:16:34 +0000
(15:16 +0800)
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>
arch/riscv/cpu/start.S
patch
|
blob
|
history
diff --git
a/arch/riscv/cpu/start.S
b/arch/riscv/cpu/start.S
index
bbc737e
..
8589509
100644
(file)
--- 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