[RFC PATCH] arch: riscv: cpu: Add callback to init each core

Green Wan green.wan at sifive.com
Tue Mar 23 08:31:56 CET 2021


On Tue, Mar 23, 2021 at 1:07 PM Bin Meng <bmeng.cn at gmail.com> wrote:

> Hi Green,
>
> On Tue, Mar 23, 2021 at 12:12 PM Green Wan <green.wan at sifive.com> wrote:
> >
> > Hi Bin,
> >
> > I can move it to the place right after stacks for harts are set up and
> right before picking up the lottery hart. (like below) How about the
> function name? Do we come up with a better function name?
> mach_cpu_core_init() is similar to mach_cpu_init() in include/init.h. It
> could cause confusion.
>
> How about riscv_core_early_init(), or riscv_hart_early_init()?
>

I'll vote for riscv_hart_early_init() and create the v2 patch based on it.

Thanks,


> Regards,
> Bin
>


More information about the U-Boot mailing list