summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hellstrom <daniel@gaisler.com>2019-01-17 15:38:47 +0100
committerDaniel Hellstrom <daniel@gaisler.com>2020-09-02 10:53:07 +0200
commitd874e66efd2daef83f7446f09089ea23e5d8226c (patch)
tree16b259b1f647bc71d18e96c4271b75792fa39aa1
parented25764e5c58c22565aa4f7cbba6f7dd14e3281b (diff)
leon3v7: added new bsp configuration
-rw-r--r--bsps/sparc/leon3/config/leon3v7.cfg17
-rw-r--r--bsps/sparc/leon3/start/linkcmds.leon3v722
-rw-r--r--c/src/lib/libbsp/sparc/leon3/Makefile.am1
3 files changed, 40 insertions, 0 deletions
diff --git a/bsps/sparc/leon3/config/leon3v7.cfg b/bsps/sparc/leon3/config/leon3v7.cfg
new file mode 100644
index 0000000000..618b8a5e9f
--- /dev/null
+++ b/bsps/sparc/leon3/config/leon3v7.cfg
@@ -0,0 +1,17 @@
+#
+# Config file for the LEON3 SPARCv7 processor.
+#
+
+include $(RTEMS_ROOT)/make/custom/default.cfg
+
+RTEMS_CPU=sparc
+
+# This contains the compiler options necessary to select the CPU model
+# and (hopefully) optimize for it.
+CPU_CFLAGS = -mcpu=leon3v7
+
+# optimize flag: typically -O2
+CFLAGS_OPTIMIZE_V = -O2 -g
+CFLAGS_OPTIMIZE_V += -ffunction-sections -fdata-sections
+
+LDFLAGS = -Wl,--gc-sections
diff --git a/bsps/sparc/leon3/start/linkcmds.leon3v7 b/bsps/sparc/leon3/start/linkcmds.leon3v7
new file mode 100644
index 0000000000..6954e88f45
--- /dev/null
+++ b/bsps/sparc/leon3/start/linkcmds.leon3v7
@@ -0,0 +1,22 @@
+/* linkcmds
+ */
+
+/* Default values, can be overridden */
+
+_PROM_SIZE = DEFINED (_PROM_SIZE) ? _PROM_SIZE : 2M;
+_PROM_START = DEFINED (_PROM_START) ? _PROM_START : 0x00000000;
+
+_RAM_SIZE = DEFINED (_RAM_SIZE) ? _RAM_SIZE : 4M;
+_RAM_START = DEFINED (_RAM_START) ? _RAM_START : 0x40000000;
+
+/* these are the maximum values */
+
+MEMORY
+{
+ rom : ORIGIN = 0x00000000, LENGTH = 256M
+ ram : ORIGIN = 0x40000000, LENGTH = 1024M
+}
+
+ENTRY(start)
+
+INCLUDE linkcmds.base
diff --git a/c/src/lib/libbsp/sparc/leon3/Makefile.am b/c/src/lib/libbsp/sparc/leon3/Makefile.am
index 94026e03b6..201b83caad 100644
--- a/c/src/lib/libbsp/sparc/leon3/Makefile.am
+++ b/c/src/lib/libbsp/sparc/leon3/Makefile.am
@@ -26,6 +26,7 @@ dist_project_lib_DATA += ../../../../../../bsps/sparc/leon3/start/linkcmds.gr712
dist_project_lib_DATA += ../../../../../../bsps/sparc/leon3/start/linkcmds.gr740_smp
dist_project_lib_DATA += ../../../../../../bsps/sparc/leon3/start/linkcmds.leon3_smp
dist_project_lib_DATA += ../../../../../../bsps/sparc/leon3/start/linkcmds.leon3_sf_smp
+dist_project_lib_DATA += ../../../../../../bsps/sparc/leon3/start/linkcmds.leon3v7
project_lib_LIBRARIES = librtemsbsp.a
librtemsbsp_a_SOURCES =