4.104.114.84.95
Rev | Line | |
---|
[b812f84] | 1 | /* |
---|
| 2 | * CXX Spurious Trap Handler Install Routine |
---|
| 3 | * |
---|
[6128a4a] | 4 | * This is just enough of a trap handler to let us know what |
---|
[b812f84] | 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 |
---|
[7e0e4546] | 12 | * http://www.rtems.com/license/LICENSE. |
---|
[b812f84] | 13 | * |
---|
| 14 | * $Id$ |
---|
| 15 | */ |
---|
| 16 | |
---|
| 17 | #include <bsp.h> |
---|
[3f345bf] | 18 | #include <rtems/bspIo.h> |
---|
[b812f84] | 19 | |
---|
| 20 | /* |
---|
| 21 | * bsp_spurious_initialize |
---|
| 22 | * |
---|
[6128a4a] | 23 | * Install the spurious handler for most vectors. |
---|
[b812f84] | 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 | { |
---|
[492bb09] | 33 | uint32_t vector; |
---|
[b812f84] | 34 | |
---|
| 35 | for ( vector=0 ; vector<255 ; vector++ ) { |
---|
| 36 | |
---|
| 37 | /* |
---|
| 38 | * Skip any vectors that might be generally used for traps. |
---|
| 39 | * |
---|
| 40 | * XXX |
---|
| 41 | */ |
---|
| 42 | |
---|
| 43 | set_vector( bsp_spurious_handler, vector, 1 ); |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.