Re: [PATCH] riscv: force __cpu_up_ variables to put in data section

2020-05-02 Thread Zong Li
On Sat, May 2, 2020 at 2:13 PM Anup Patel wrote: > > On Sat, May 2, 2020 at 11:30 AM Zong Li wrote: > > > > On Fri, May 1, 2020 at 2:23 AM Atish Patra wrote: > > > > > > On Thu, Apr 30, 2020 at 2:53 AM Zong Li wrote: > > > > > > > > Put __cpu_up_stack_pointer and __cpu_up_task_pointer in data

Re: [PATCH] riscv: force __cpu_up_ variables to put in data section

2020-05-02 Thread Anup Patel
On Sat, May 2, 2020 at 11:30 AM Zong Li wrote: > > On Fri, May 1, 2020 at 2:23 AM Atish Patra wrote: > > > > On Thu, Apr 30, 2020 at 2:53 AM Zong Li wrote: > > > > > > Put __cpu_up_stack_pointer and __cpu_up_task_pointer in data section. > > > Currently, these two variables are put in bss

Re: [PATCH] riscv: force __cpu_up_ variables to put in data section

2020-05-02 Thread Zong Li
On Fri, May 1, 2020 at 2:23 AM Atish Patra wrote: > > On Thu, Apr 30, 2020 at 2:53 AM Zong Li wrote: > > > > Put __cpu_up_stack_pointer and __cpu_up_task_pointer in data section. > > Currently, these two variables are put in bss section, there is a > > potential risk that secondary harts get the

Re: [PATCH] riscv: force __cpu_up_ variables to put in data section

2020-04-30 Thread Atish Patra
On Thu, Apr 30, 2020 at 2:53 AM Zong Li wrote: > > Put __cpu_up_stack_pointer and __cpu_up_task_pointer in data section. > Currently, these two variables are put in bss section, there is a > potential risk that secondary harts get the uninitialized value before > main hart finishing the bss

Re: [PATCH] riscv: force __cpu_up_ variables to put in data section

2020-04-30 Thread Greentime Hu
Zong Li 於 2020年4月30日 週四 下午5:53寫道: > > Put __cpu_up_stack_pointer and __cpu_up_task_pointer in data section. > Currently, these two variables are put in bss section, there is a > potential risk that secondary harts get the uninitialized value before > main hart finishing the bss clearing. In this

[PATCH] riscv: force __cpu_up_ variables to put in data section

2020-04-30 Thread Zong Li
Put __cpu_up_stack_pointer and __cpu_up_task_pointer in data section. Currently, these two variables are put in bss section, there is a potential risk that secondary harts get the uninitialized value before main hart finishing the bss clearing. In this case, all secondary harts would go through