]> git.dujemihanovic.xyz Git - u-boot.git/commit
riscv: cpu: set gp before board_init_f_init_reserve
authorNikita Shubin <n.shubin@yadro.com>
Fri, 20 May 2022 11:41:17 +0000 (14:41 +0300)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Thu, 11 Aug 2022 10:42:53 +0000 (18:42 +0800)
commita5041e33e4f05efec8a412641243c9281cba47e9
tree2863c733b1de90da6a6702324b979ef2fb913162
parentcdebee1fd9fa04cc4c972f826bae19b28c253eb0
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>
arch/riscv/cpu/start.S