[PATCH] riscv: cpu: set gp before board_init_f_init_reserve

Nikita Shubin nikita.shubin at maquefel.me
Tue Aug 2 12:29:24 CEST 2022


Hello Leo!

On Wed, 1 Jun 2022 02:07:34 +0000
Leo Liang <ycliang at andestech.com> wrote:

> On Fri, May 20, 2022 at 02:41:17PM +0300, Nikita Shubin wrote:
> > From: Nikita Shubin <n.shubin at yadro.com>
> > 
> > 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 at yadro.com>
> > ---
> >  arch/riscv/cpu/start.S | 1 +
> >  1 file changed, 1 insertion(+)  
> 
> Reviewed-by: Leo Yu-Chi Liang <ycliang at andestech.com>

Any further motion on this ? 

Yours,
Nikita Shubin.



More information about the U-Boot mailing list