summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/shared/bspspuriousinit.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-01 20:01:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2000-08-01 20:01:14 +0000
commitb812f841553be30baab45f08b3f6fda692b5166b (patch)
treeb3dc6aeca3a4ced907f1c0262f9a714b44d3baab /c/src/lib/libbsp/m68k/shared/bspspuriousinit.c
parentLook at both hardware and software FP settings. (diff)
downloadrtems-b812f841553be30baab45f08b3f6fda692b5166b.tar.bz2
Added sim68000 BSP for the BSVC simulator. This BSP includes the
alias simcpu32 that supports the CPU32 simulator in BSVC. At this point, it is still under development.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/m68k/shared/bspspuriousinit.c46
1 files changed, 46 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/m68k/shared/bspspuriousinit.c b/c/src/lib/libbsp/m68k/shared/bspspuriousinit.c
new file mode 100644
index 0000000000..d894fe4fc6
--- /dev/null
+++ b/c/src/lib/libbsp/m68k/shared/bspspuriousinit.c
@@ -0,0 +1,46 @@
+/*
+ * CXX Spurious Trap Handler Install Routine
+ *
+ * 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>
+
+/*
+ * bsp_spurious_initialize
+ *
+ * Install the spurious handler for most vectors.
+ */
+
+rtems_isr bsp_spurious_handler(
+ rtems_vector_number vector/*,
+ CPU_Interrupt_frame *isf */
+);
+
+void bsp_spurious_initialize()
+{
+ rtems_unsigned32 vector;
+
+ for ( vector=0 ; vector<255 ; vector++ ) {
+
+ /*
+ * Skip any vectors that might be generally used for traps.
+ *
+ * XXX
+ */
+
+ set_vector( bsp_spurious_handler, vector, 1 );
+ }
+
+}