OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [c4x/] [shared/] [bspspuriousinit.c] - Blame information for rev 1026

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  CXX Spurious Trap Handler Install Routine
3
 *
4
 *  This is just enough of a trap handler to let us know what
5
 *  the likely source of the trap was.
6
 *
7
 *  COPYRIGHT (c) 1989-1999.
8
 *  On-Line Applications Research Corporation (OAR).
9
 *
10
 *  The license and distribution terms for this file may be
11
 *  found in the file LICENSE in this distribution or at
12
 *  http://www.OARcorp.com/rtems/license.html.
13
 *
14
 *  bspspuriousinit.c,v 1.3 2002/01/04 17:40:44 joel Exp
15
 */
16
 
17
#include <bsp.h>
18
#include <rtems/bspIo.h>
19
 
20
/*
21
 *  bsp_spurious_initialize
22
 *
23
 *  Install the spurious handler for most vectors.
24
 */
25
 
26
rtems_isr bsp_spurious_handler(
27
   rtems_vector_number  vector,
28
   CPU_Interrupt_frame *isf
29
);
30
 
31
void bsp_spurious_initialize()
32
{
33
  rtems_unsigned32 vector;
34
 
35
  for ( vector=0 ; vector<64 ; vector++ ) {
36
 
37
    /*
38
     *  Skip any vectors that might be generally used for traps.
39
     */
40
 
41
    set_vector( bsp_spurious_handler, vector, 1 );
42
  }
43
 
44
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.