[PATCH 1/2] LEON3: add dedicated SMP BSP config

Daniel Hellstrom daniel at gaisler.com
Thu Jul 3 07:59:33 UTC 2014


In order to support older toolchains and LEON3 v7 systems the
-mcpu=leon3 flag can not be used in the LEON3 BSP. The SMP
kernel however requires -mcpu=leon3 for the CAS support only
present in GCC-4.8 and GCC-4.9.
---
 .../libbsp/sparc/leon3/make/custom/leon3smp.cfg    |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
 create mode 100644 c/src/lib/libbsp/sparc/leon3/make/custom/leon3smp.cfg

diff --git a/c/src/lib/libbsp/sparc/leon3/make/custom/leon3smp.cfg b/c/src/lib/libbsp/sparc/leon3/make/custom/leon3smp.cfg
new file mode 100644
index 0000000..361ca36
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/leon3/make/custom/leon3smp.cfg
@@ -0,0 +1,8 @@
+#
+#  Config file for the LEON3 SPARC V8 SMP processors.
+#
+
+include $(RTEMS_ROOT)/make/custom/leon3.cfg
+
+# LEON3 SPARC v8 system
+CPU_CFLAGS = -mcpu=leon3 -msoft-float -muser-mode
-- 
1.7.0.4



More information about the devel mailing list