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

2021-03-26 Thread Green Wan
On Fri, Mar 26, 2021 at 9:34 AM Sean Anderson wrote: > > On 3/25/21 9:22 PM, Leo Liang wrote: > > Hi Green, > > > > On Tue, Mar 23, 2021 at 01:35:38AM -0700, Green Wan wrote: > >> Add a callback riscv_hart_early_init() to ./arch/riscv/cpu/start.S to > >> allow different riscv hart perform setup co

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

2021-03-25 Thread Sean Anderson
On 3/25/21 9:22 PM, Leo Liang wrote: Hi Green, On Tue, Mar 23, 2021 at 01:35:38AM -0700, Green Wan wrote: Add a callback riscv_hart_early_init() to ./arch/riscv/cpu/start.S to allow different riscv hart perform setup code for each hart as early as possible. Since all the harts enter the calback

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

2021-03-25 Thread Leo Liang
Hi Green, On Tue, Mar 23, 2021 at 01:35:38AM -0700, Green Wan wrote: > Add a callback riscv_hart_early_init() to ./arch/riscv/cpu/start.S to > allow different riscv hart perform setup code for each hart as early > as possible. Since all the harts enter the calback, they must be able > to run the s

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

2021-03-23 Thread Sean Anderson
On 3/23/21 4:35 AM, Green Wan wrote: Add a callback riscv_hart_early_init() to ./arch/riscv/cpu/start.S to allow different riscv hart perform setup code for each hart as early as possible. Since all the harts enter the calback, they must be able nit: callback to run the same setup. Signed-of

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

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