diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-02-10 10:52:02 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2023-02-10 16:15:52 +0100 |
commit | b993111594a2e49273a056bafd14a28dc04f5e19 (patch) | |
tree | bdc15a2768ccf6d826f3b7f80998805c097630bc /bsps/sparc/leon3/start | |
parent | bsps/irq: Clarify interrupt vector operations (diff) | |
download | rtems-b993111594a2e49273a056bafd14a28dc04f5e19.tar.bz2 |
bsp/leon3: Move SMP data to start.S
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.
Diffstat (limited to 'bsps/sparc/leon3/start')
-rw-r--r-- | bsps/sparc/leon3/start/bspstart.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/bsps/sparc/leon3/start/bspstart.c b/bsps/sparc/leon3/start/bspstart.c index d93d73aca8..61f888247f 100644 --- a/bsps/sparc/leon3/start/bspstart.c +++ b/bsps/sparc/leon3/start/bspstart.c @@ -59,11 +59,6 @@ int CPU_SPARC_HAS_SNOOPING; /* Index of CPU, in an AMP system CPU-index may be non-zero */ uint32_t LEON3_Cpu_Index = 0; -#if defined(RTEMS_SMP) -/* Index of the boot CPU. Set by the first CPU at boot to its CPU ID. */ -int LEON3_Boot_Cpu = -1; -#endif - /* * set_snooping * |