diff options
Diffstat (limited to 'c/src/lib/libbsp/c4x/shared/bspspuriousinit.c')
-rw-r--r-- | c/src/lib/libbsp/c4x/shared/bspspuriousinit.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/c4x/shared/bspspuriousinit.c b/c/src/lib/libbsp/c4x/shared/bspspuriousinit.c new file mode 100644 index 0000000000..9573b6bfcc --- /dev/null +++ b/c/src/lib/libbsp/c4x/shared/bspspuriousinit.c @@ -0,0 +1,45 @@ +/* + * 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> +#include <simio.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<64 ; vector++ ) { + + /* + * Skip any vectors that might be generally used for traps. + */ + + set_vector( bsp_spurious_handler, vector, 1 ); + } + +} |