diff options
Diffstat (limited to 'c/src/lib/libbsp/mips/csb350/startup/bspclean.c')
-rw-r--r-- | c/src/lib/libbsp/mips/csb350/startup/bspclean.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/mips/csb350/startup/bspclean.c b/c/src/lib/libbsp/mips/csb350/startup/bspclean.c new file mode 100644 index 0000000000..783c60f92c --- /dev/null +++ b/c/src/lib/libbsp/mips/csb350/startup/bspclean.c @@ -0,0 +1,30 @@ +/* + * 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 <rtems.h> +#include <libcpu/au1x00.h> + +void bsp_cleanup( void ) +{ + void (*reset_func)(void); + + reset_func = (void *)0xbfc00000; + + mips_set_sr( 0x00200000 ); /* all interrupts off, boot exception vectors */ + + printk("\nEXECUTIVE SHUTDOWN! Any key to reboot..."); + while (console_inbyte_nonblocking(0) < 0) { + continue; + } + + /* Try to restart bootloader */ + reset_func(); + +} |