[rtems commit] bsps/m68k: Remove unused files

Sebastian Huber sebh at rtems.org
Tue Apr 24 08:27:57 UTC 2018


Module:    rtems
Branch:    master
Commit:    c7410f17837037fc5dbe94a4dfbb8ed7330b5d29
Changeset: http://git.rtems.org/rtems/commit/?id=c7410f17837037fc5dbe94a4dfbb8ed7330b5d29

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Apr 24 07:27:30 2018 +0200

bsps/m68k: Remove unused files

This patch is a part of the BSP source reorganization.

Update #3285.

---

 c/src/lib/libbsp/m68k/shared/bspspuriousinit.c | 40 ---------------
 c/src/lib/libbsp/m68k/shared/m68000spurious.c  | 69 --------------------------
 2 files changed, 109 deletions(-)

diff --git a/c/src/lib/libbsp/m68k/shared/bspspuriousinit.c b/c/src/lib/libbsp/m68k/shared/bspspuriousinit.c
deleted file mode 100644
index e60a403..0000000
--- a/c/src/lib/libbsp/m68k/shared/bspspuriousinit.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- *  M68000 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-2014.
- *  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.rtems.org/license/LICENSE.
- */
-
-#include <bsp.h>
-#include <rtems/bspIo.h>
-
-/*
- *  bsp_spurious_initialize
- *
- *  Install the spurious handler for most vectors.
- */
-void bsp_spurious_initialize(void)
-{
-  uint32_t         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 );
-  }
-
-}
diff --git a/c/src/lib/libbsp/m68k/shared/m68000spurious.c b/c/src/lib/libbsp/m68k/shared/m68000spurious.c
deleted file mode 100644
index aeffa45..0000000
--- a/c/src/lib/libbsp/m68k/shared/m68000spurious.c
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- *  M68000 Spurious Trap Handler
- *
- *  This is just enough of a trap handler to let us know what
- *  the likely source of the trap was.
- */
-
-/*
- *  COPYRIGHT (c) 1989-2014.
- *  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.rtems.org/license/LICENSE.
- */
-
-#include <bsp.h>
-#include <rtems/bspIo.h>
-
-/*
- *  bsp_spurious_handler
- *
- *  Print a message on the debug console and then die
- */
-rtems_isr bsp_spurious_handler(
-   rtems_vector_number  vector
-)
-{
-#if 0
-  printk( "Unexpected interrupt (0x%x)\n", vector );
-#else
-  char *s;
-
-/*
-  printk( "It looks like we got the interrupt at 0x%x\n", isf->interrupted );
-*/
-
-  /*
-   *  Can we print a name?
-   */
-  s = 0;
-  if ( vector <= 0x1f ) {
-    switch ( vector ) {
-      case 1:     s = "INT0";     break;
-      case 2:     s = "INT1";     break;
-      case 3:     s = "INT2";     break;
-      case 4:     s = "INT3";     break;
-      case 5:     s = "XINT0";    break;
-      case 6:     s = "RINT0";    break;
-      case 7:     s = "XINT1";    break;
-      case 8:     s = "RINT1";    break;
-      case 9:     s = "TINT0";    break;
-      case 0x0a:  s = "TINT1";    break;
-      case 0x0b:  s = "DINT0";    break;
-      case 0x0c:  s = "DINT1";    break;
-      default:    s = "Reserved"; break;
-    }
-    printk( "Looks like it was an %s\n", s );
-  } else {
-    printk( "Looks like it was a TRAP%d\n", vector - 0x20 );
-  }
-#endif
-
-  /*
-   *  Now call the BSP specific routine
-   */
-
-  bsp_spurious_handler_assistant( vector/* , 0 */ );
-}




More information about the vc mailing list