4.104.114.84.95
Line | |
---|
1 | /* |
---|
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 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #include <bsp.h> |
---|
18 | #include <bspIo.h> |
---|
19 | #include <simio.h> |
---|
20 | |
---|
21 | /* |
---|
22 | * bsp_spurious_initialize |
---|
23 | * |
---|
24 | * Install the spurious handler for most vectors. |
---|
25 | */ |
---|
26 | |
---|
27 | rtems_isr bsp_spurious_handler( |
---|
28 | rtems_vector_number vector, |
---|
29 | CPU_Interrupt_frame *isf |
---|
30 | ); |
---|
31 | |
---|
32 | void bsp_spurious_initialize() |
---|
33 | { |
---|
34 | rtems_unsigned32 vector; |
---|
35 | |
---|
36 | for ( vector=0 ; vector<64 ; vector++ ) { |
---|
37 | |
---|
38 | /* |
---|
39 | * Skip any vectors that might be generally used for traps. |
---|
40 | */ |
---|
41 | |
---|
42 | set_vector( bsp_spurious_handler, vector, 1 ); |
---|
43 | } |
---|
44 | |
---|
45 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.