summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/shared/bspspuriousinit.c
blob: d894fe4fc6e94e4c23d6d497f7f7d95383e79d43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 );
  }

}