diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-04-26 23:14:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-04-26 23:14:13 +0000 |
commit | d3db8aed5e146e3b167067d81a408528a59c2a01 (patch) | |
tree | 826d57baa9d54f426113f7fd5c679e1666d8a8db /c/src/lib/libbsp/mips/csb350/startup/bspclean.c | |
parent | 2005-04-26 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-d3db8aed5e146e3b167067d81a408528a59c2a01.tar.bz2 |
2005-04-26 Joel Sherrill <joel@OARcorp.com>
* clock/clockdrv.c: Add include of rtems/bspIo.h.
* include/tm27.h: Delete TX3904 code and leave stub.
* network/network.c: Eliminate warnings.
* startup/bspclean.c: Add include of rtems/bspIo.h. Reformat.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/mips/csb350/startup/bspclean.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/c/src/lib/libbsp/mips/csb350/startup/bspclean.c b/c/src/lib/libbsp/mips/csb350/startup/bspclean.c index 783c60f92c..d1e2239a1e 100644 --- a/c/src/lib/libbsp/mips/csb350/startup/bspclean.c +++ b/c/src/lib/libbsp/mips/csb350/startup/bspclean.c @@ -10,21 +10,22 @@ */ #include <rtems.h> #include <libcpu/au1x00.h> +#include <rtems/bspIo.h> void bsp_cleanup( void ) { - void (*reset_func)(void); + int console_inbyte_nonblocking(int); + void (*reset_func)(void); - reset_func = (void *)0xbfc00000; + reset_func = (void *)0xbfc00000; - mips_set_sr( 0x00200000 ); /* all interrupts off, boot exception vectors */ + 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(); + printk("\nEXECUTIVE SHUTDOWN! Any key to reboot..."); + while (console_inbyte_nonblocking(0) < 0) { + continue; + } + /* Try to restart bootloader */ + reset_func(); } |