On Mon, Jul 22, 2019 at 2:00 AM Lukas Auer <[email protected]> wrote: > > To support relocation of the stack and global data on RISC-V, the > secondary harts must be notified of the change using IPIs. We can reuse > the hart relocation code for this purpose. It uses global data to store > the new stack pointer and global data pointer for the secondary harts. > This means that we cannot update the global data pointer of the main > hart in spl_relocate_stack_gd(), because the secondary harts have not > yet been relocated at this point. It is updated after the secondary > harts have been notified. > > Signed-off-by: Lukas Auer <[email protected]> > --- > > arch/riscv/cpu/start.S | 35 ++++++++++++++++++++++++++++++++++- > common/spl/spl.c | 2 +- > 2 files changed, 35 insertions(+), 2 deletions(-) >
Reviewed-by: Bin Meng <[email protected]> Tested-by: Bin Meng <[email protected]> _______________________________________________ U-Boot mailing list [email protected] https://lists.denx.de/listinfo/u-boot

