Re: [PATCH] bsp/leon3: Move SMP data to start.S

2023-02-10 Thread Joel Sherrill
Looks ok. On Fri, Feb 10, 2023 at 3:57 AM Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > The LEON3_Boot_Cpu global object is only used by start.S. Move the > definition > of this object to start.S and use a local symbol .Lbootcpuindex for it. > > Use a compare-and-swap instructio

[PATCH] bsp/leon3: Move SMP data to start.S

2023-02-10 Thread Sebastian Huber
The LEON3_Boot_Cpu global object is only used by start.S. Move the definition of this object to start.S and use a local symbol .Lbootcpuindex for it. Use a compare-and-swap instruction to assign the boot CPU. This allows a concurrent initialization. Close #4845. --- bsps/sparc/leon3/start/bsps