Re: [RFC PATCH v6 1/2] arch: riscv: cpu: Add callback to init each core

2021-04-16 Thread Rick Chen
[RFC PATCH v6 1/2] arch: riscv: cpu: Add callback to init each core nitpicky, arch is redundant in title. riscv: cpu: Add callback to init each core will be fine. > > Add a callback harts_early_init() to start.S to allow different riscv > hart perform setup code for each hart as e

[RFC PATCH v6 1/2] arch: riscv: cpu: Add callback to init each core

2021-04-15 Thread Green Wan
Add a callback harts_early_init() to start.S to allow different riscv hart perform setup code for each hart as early as possible. Since all the harts enter the callback, they must be able to run the same setup. Signed-off-by: Green Wan --- arch/riscv/cpu/cpu.c | 11 +++