mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 22:21:49 +01:00
riscv: cpu: set gp before board_init_f_init_reserve
Restore global pointer before board_init_f_init_reserve call, as "a0" can be set in harts_early_init call and we end up with invalid global pointer. Signed-off-by: Nikita Shubin <n.shubin@yadro.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
parent
cdebee1fd9
commit
a5041e33e4
@ -143,6 +143,7 @@ call_harts_early_init:
|
||||
bnez tp, secondary_hart_loop
|
||||
#endif
|
||||
|
||||
mv a0, s0
|
||||
jal board_init_f_init_reserve
|
||||
|
||||
SREG s1, GD_FIRMWARE_FDT_ADDR(gp)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user