summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-02-22 18:39:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-02-22 18:39:52 +0000
commit61ba976360804d85f9203821518bb4b132852188 (patch)
tree28e72dd94472e21da42f5f5d1e82912a9f83852a /c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c
parentAdding information on prebuilt toolset binaries. (diff)
downloadrtems-61ba976360804d85f9203821518bb4b132852188.tar.bz2
New port of RTEMS to TI C3x and C4x.
Diffstat (limited to 'c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c')
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c33
1 files changed, 33 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c b/c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c
new file mode 100644
index 0000000000..60872cd54d
--- /dev/null
+++ b/c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c
@@ -0,0 +1,33 @@
+/*
+ * CXX Simulator Spurious Trap Handler Assistant
+ *
+ * This is just enough of a trap handler to let us know what
+ * the likely source of the trap was.
+ *
+ * COPYRIGHT (c) 1989-1999.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.OARcorp.com/rtems/license.html.
+ *
+ * $Id$
+ */
+
+#include <bsp.h>
+#include <bspIo.h>
+#include <simio.h>
+
+/*
+ * bsp_spurious_handler_assistant
+ *
+ * We can't recover so just return to gdb.
+ */
+
+void bsp_spurious_handler_assistant(
+ rtems_vector_number vector,
+ CPU_Interrupt_frame *isf
+)
+{
+ sim_exit();
+}