summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c
diff options
context:
space:
mode:
authorMartin Aberg <maberg@gaisler.com>2017-04-24 16:39:49 +0200
committerDaniel Hellstrom <daniel@gaisler.com>2017-05-14 12:31:59 +0200
commitaa19873f6823a419331f30592e1856e196cc1532 (patch)
treef5f934476941a06bf463698cac40263f4c872161 /c/src/lib/libbsp/sparc/leon3/startup/bspstart.c
parentleon, grcan: removed unused txerror, rxerror (diff)
downloadrtems-aa19873f6823a419331f30592e1856e196cc1532.tar.bz2
leon: allow SMP boot from any CPU
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/leon3/startup/bspstart.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c b/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c
index 80c2bc004e..6353ca3772 100644
--- a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c
+++ b/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c
@@ -36,6 +36,11 @@ 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
*