diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-04-28 16:17:39 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-04-28 16:17:39 +0000 |
commit | 27d619b86bd3ea6a36c8d3258ac6cba06b22a6e6 (patch) | |
tree | 676f2c9228a668ad9e8cdebc4fc10866204459da /c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c | |
parent | 2005-04-28 Jennifer Averett <jennifer.averett@oarcorp.com> (diff) | |
download | rtems-27d619b86bd3ea6a36c8d3258ac6cba06b22a6e6.tar.bz2 |
2005-04-28 Joel Sherrill <joel@OARcorp.com>
* acinclude.m4: Remove dmv177 and ppcn_60x.
* dmv177/.cvsignore, dmv177/ChangeLog, dmv177/Makefile.am,
dmv177/QUIRKS, dmv177/README, dmv177/README.net, dmv177/STATUS,
dmv177/bsp_specs, dmv177/cable.doc, dmv177/configure.ac,
dmv177/times, dmv177/clock/clock.c, dmv177/console/conscfg.c,
dmv177/console/debugio.c, dmv177/include/.cvsignore,
dmv177/include/bsp.h, dmv177/include/dmv170.h, dmv177/include/tm27.h,
dmv177/scv64/scv64.c, dmv177/sonic/dmvsonic.c, dmv177/start/start.S,
dmv177/startup/bspclean.c, dmv177/startup/bspstart.c,
dmv177/startup/genpvec.c, dmv177/startup/linkcmds,
dmv177/startup/setvec.c, dmv177/startup/vmeintr.c,
dmv177/timer/timer.c, dmv177/tod/todcfg.c, ppcn_60x/.cvsignore,
ppcn_60x/ChangeLog, ppcn_60x/Makefile.am, ppcn_60x/README,
ppcn_60x/STATUS, ppcn_60x/bsp_specs, ppcn_60x/configure.ac,
ppcn_60x/clock/clock.c, ppcn_60x/console/config.c,
ppcn_60x/console/console.c, ppcn_60x/console/console.h,
ppcn_60x/console/debugio.c, ppcn_60x/console/i8042.c,
ppcn_60x/console/i8042_p.h, ppcn_60x/console/i8042vga.c,
ppcn_60x/console/i8042vga.h, ppcn_60x/console/ns16550cfg.c,
ppcn_60x/console/ns16550cfg.h, ppcn_60x/console/vga.c,
ppcn_60x/console/vga_p.h, ppcn_60x/console/z85c30cfg.c,
ppcn_60x/console/z85c30cfg.h, ppcn_60x/include/.cvsignore,
ppcn_60x/include/bsp.h, ppcn_60x/include/extisrdrv.h,
ppcn_60x/include/nvram.h, ppcn_60x/include/pci.h,
ppcn_60x/include/tm27.h, ppcn_60x/network/amd79c970.c,
ppcn_60x/network/amd79c970.h, ppcn_60x/nvram/ds1385.h,
ppcn_60x/nvram/mk48t18.h, ppcn_60x/nvram/nvram.c,
ppcn_60x/nvram/prepnvr.h, ppcn_60x/nvram/stk11c68.h,
ppcn_60x/pci/pci.c, ppcn_60x/start/start.S,
ppcn_60x/startup/bspclean.c, ppcn_60x/startup/bspstart.c,
ppcn_60x/startup/bsptrap.S, ppcn_60x/startup/genpvec.c,
ppcn_60x/startup/linkcmds, ppcn_60x/startup/rtems-ctor.cc,
ppcn_60x/startup/setvec.c, ppcn_60x/startup/spurious.c,
ppcn_60x/startup/swap.c, ppcn_60x/timer/timer.c, ppcn_60x/tod/cmos.h,
ppcn_60x/tod/tod.c, ppcn_60x/universe/universe.c,
ppcn_60x/vectors/README, ppcn_60x/vectors/align_h.S,
ppcn_60x/vectors/vectors.S: Removed.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c | 171 |
1 files changed, 0 insertions, 171 deletions
diff --git a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c b/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c deleted file mode 100644 index 684817a986..0000000000 --- a/c/src/lib/libbsp/powerpc/ppcn_60x/startup/spurious.c +++ /dev/null @@ -1,171 +0,0 @@ -/* - * PPCn_60x Spurious Trap Handler - * - * This is just enough of a trap handler to let us know what - * the likely source of the trap was. - * - * Based upon the SPARC ERC32 version which was developed as - * part of the port of RTEMS to the ERC32 implementation - * of the SPARC by On-Line Applications Research Corporation (OAR) - * under contract to the European Space Agency (ESA). - * - * COPYRIGHT (c) 1995. European Space Agency. - * - * This terms of the RTEMS license apply to this file. - * - * $Id$ - */ - -#include <bsp.h> - -#include <string.h> - -rtems_isr bsp_stub_handler( - rtems_vector_number trap -) -{ -} - -/* - * bsp_spurious_handler - * - * Print a message on the debug console and then die - */ -rtems_isr bsp_spurious_handler( - rtems_vector_number trap -) -{ - - DEBUG_puts( "Spurious Trap" ); - - switch ( trap ) { - case PPC_IRQ_SYSTEM_RESET: - DEBUG_puts( "System reset" ); - break; - case PPC_IRQ_MCHECK: - DEBUG_puts( "Machine check" ); - break; - case PPC_IRQ_PROTECT: - DEBUG_puts( "DSI" ); - break; - case PPC_IRQ_ISI: - DEBUG_puts( "ISI" ); - break; - case PPC_IRQ_EXTERNAL: - DEBUG_puts( "External interupt" ); - break; - case PPC_IRQ_ALIGNMENT: - DEBUG_puts( "Alignment Exception" ); - break; - case PPC_IRQ_PROGRAM: - DEBUG_puts( "Program" ); - break; - case PPC_IRQ_NOFP: - DEBUG_puts( "Floating point unavailable" ); - break; - case PPC_IRQ_DECREMENTER: - DEBUG_puts( "Decrementer" ); - break; - case PPC_IRQ_RESERVED_A: - DEBUG_puts( "Reserved 0x00a00" ); - break; - case PPC_IRQ_RESERVED_B: - DEBUG_puts( "Reserved 0x00b00" ); - break; - case PPC_IRQ_SCALL: - DEBUG_puts( "System call" ); - break; - case PPC_IRQ_TRACE: - DEBUG_puts( "Trace" ); - break; - case PPC_IRQ_FP_ASST: - DEBUG_puts( "Floating point Assist" ); - break; - -#if defined(ppc403) || defined(ppc405) - case PPC_IRQ_CRIT : - DEBUG_puts( "Critical Error "); - break; - case PPC_IRQ_PIT: - DEBUG_puts( "Prog. Interval Timer " ); - break; - case PPC_IRQ_FIT: - DEBUG_puts( "Fixed Interval Timer " ); - break; - case PPC_IRQ_WATCHDOG : - DEBUG_puts( "Watchdog Timer " ); - break; - case PPC_IRQ_DEBUG : - DEBUG_puts( "Debug " ); - break; - -#elif defined(ppc601) -#error "Please fill in names. " - case PPC_IRQ_TRACE : - DEBUG_puts( "0x02000" ); - break; - -#elif defined(ppc603) || defined(ppc603e) - case PPC_IRQ_TRANS_MISS: - DEBUG_puts( "Instruction Translation Miss" ); - break; - case PPC_IRQ_DATA_LOAD: - DEBUG_puts( "Data Load Translation Miss" ); - break; - case PPC_IRQ_DATA_STORE: - DEBUG_puts( "Data store Translation Miss"); - break; - case PPC_IRQ_ADDR_BRK: - DEBUG_puts( "Instruction address break point" ); - break; - case PPC_IRQ_SYS_MGT: - DEBUG_puts( "System management interrupt" ); - break; - -#elif defined(mpc604) -#error "Please fill in names. " - case PPC_IRQ_ADDR_BRK: - DEBUG_puts( "0x1300" ); - break; - case PPC_IRQ_SYS_MGT: - DEBUG_puts( "0x1400" ); - break; -#endif - - default: - DEBUG_puts( "Undefined exception " ); - break; - } - - /* - * What else can we do but stop ... - */ - /* - asm volatile( "" ); - */ -} - -/* - * bsp_spurious_initialize - * - * Install the spurious handler for most traps. - */ - -void bsp_spurious_initialize() -{ - uint32_t trap; - - for ( trap=0 ; trap < PPC_IRQ_LAST ; trap++ ) { - - /* - * Skip window overflow, underflow, and flush as well as software - * trap 0 which we will use as a shutdown. - */ - - set_vector( bsp_spurious_handler, trap, 1 ); - } - - set_vector( bsp_stub_handler, PPC_IRQ_DECREMENTER, 1 ); - set_vector( bsp_stub_handler, PPC_IRQ_TRACE, 1 ); - set_vector( bsp_stub_handler, PPC_IRQ_SYS_MGT, 1 ); -} |