summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon/gnatsupp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/sparc/leon/gnatsupp/.cvsignore2
-rw-r--r--c/src/lib/libbsp/sparc/leon/gnatsupp/Makefile.am33
-rw-r--r--c/src/lib/libbsp/sparc/leon/gnatsupp/gnatsupp.c17
3 files changed, 52 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/sparc/leon/gnatsupp/.cvsignore b/c/src/lib/libbsp/sparc/leon/gnatsupp/.cvsignore
new file mode 100644
index 0000000000..282522db03
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/leon/gnatsupp/.cvsignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/c/src/lib/libbsp/sparc/leon/gnatsupp/Makefile.am b/c/src/lib/libbsp/sparc/leon/gnatsupp/Makefile.am
new file mode 100644
index 0000000000..f061171fa9
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/leon/gnatsupp/Makefile.am
@@ -0,0 +1,33 @@
+##
+## $Id$
+##
+
+AUTOMAKE_OPTIONS = foreign 1.4
+
+VPATH = @srcdir@:@srcdir@/../../shared:@srcdir@/../../../shared
+
+PGM = $(ARCH)/gnatsupp.rel
+
+C_FILES = gnatsupp.c gnatcommon.c
+C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
+
+OBJS = $(C_O_FILES)
+
+include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
+include $(top_srcdir)/../../../../../../automake/compile.am
+include $(top_srcdir)/../../../../../../automake/lib.am
+
+#
+# (OPTIONAL) Add local stuff here using +=
+#
+
+$(PGM): $(OBJS)
+ $(make-rel)
+
+all-local: $(ARCH) $(OBJS) $(PGM)
+
+.PRECIOUS: $(PGM)
+
+EXTRA_DIST = gnatsupp.c
+
+include $(top_srcdir)/../../../../../../automake/local.am
diff --git a/c/src/lib/libbsp/sparc/leon/gnatsupp/gnatsupp.c b/c/src/lib/libbsp/sparc/leon/gnatsupp/gnatsupp.c
new file mode 100644
index 0000000000..347435d950
--- /dev/null
+++ b/c/src/lib/libbsp/sparc/leon/gnatsupp/gnatsupp.c
@@ -0,0 +1,17 @@
+/*
+ *
+ * Support for gnat/rtems interrupts and exception handling.
+ * Jiri Gaisler, ESA/ESTEC, 17-02-1999.
+ *
+ */
+
+/*
+ * Avoid trap 0x18 which is used by the clock tick, and
+ * 0x12 (UART B interrupt) which is used by the stub.
+ */
+
+void
+__gnat_install_handler ()
+{
+ __gnat_install_handler_common (0x18, 0x12);
+}