Add bsp_reset bootrom call.

Call bsp_reset from bsp_cleanup().
This commit is contained in:
Eric Norum
2005-09-16 02:40:14 +00:00
parent 1370850c05
commit b711591514
4 changed files with 7 additions and 8 deletions
+5
View File
@@ -1,3 +1,8 @@
2005-09-16 Eric Norum <norume@aps.anl.gov>
* startup/bspstart.c: Add bsp_reset bootrom call.
* startup/bspclean.c: Call bsp_reset from bsp_cleanup().
2005-07-05 Eric Norum <norume@aps.anl.gov>
* startup/linkcmdc: Add .gnu.linkonce.b
-2
View File
@@ -22,8 +22,6 @@ This BSP is based on the work of:
TODO:
=====
Make a clean exit routine to return to Arcturus monitor
The bsp relies on the Arcturus monitor to set up DRAM and all chip selects.
This seems OK to me, but others may find it lame.....
@@ -26,10 +26,5 @@
void bsp_cleanup( void )
{
printk("\nRTEMS exited!\n");
for ( ;; )
{
asm volatile ( " nop " );
asm volatile ( " nop " );
}
bsp_reset(0);
}
@@ -362,6 +362,7 @@ type bsp_##name(d1type d1, d2type d2, d3type d3) \
#define SysCode_setbenv 15 /* get bootloader environment variable */
#define SysCode_flash_erase_range 19 /* erase a section of flash */
#define SysCode_flash_write_range 20 /* write a section of flash */
syscall_1(int, reset, int, flags)
syscall_1(unsigned const char *, gethwaddr, int, a)
syscall_1(const char *, getbenv, const char *, a)
syscall_2(int, program, bsp_mnode_t *, chain, int, flags)