2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>

* Makefile.am, start/start.S: bsp_cleanup() had the same code which was
	executed when you returned from boot_card() to start.S. So just use
	the stub bsp_cleanup() implementation and remove a file.
	* startup/bspclean.c: Removed.
This commit is contained in:
Joel Sherrill
2008-09-23 17:30:01 +00:00
parent 3e2f58a17c
commit fe3007d7ca
4 changed files with 11 additions and 20 deletions

View File

@@ -1,3 +1,10 @@
2008-09-23 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, start/start.S: bsp_cleanup() had the same code which was
executed when you returned from boot_card() to start.S. So just use
the stub bsp_cleanup() implementation and remove a file.
* startup/bspclean.c: Removed.
2008-09-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* include/bsp.h: Remove unused BSP_INIT_STACK_SIZE.

View File

@@ -40,7 +40,7 @@ dist_project_lib_DATA += startup/linkcmds
noinst_LIBRARIES = libbsp.a
startup_SOURCES = startup/bspclean.c ../../shared/bsplibc.c \
startup_SOURCES = ../../shared/bspclean.c ../../shared/bsplibc.c \
../../shared/bsppost.c ../../shared/bsppretaskinghook.c \
../../shared/bsppredriverhook.c startup/bspstart.c \
../../powerpc/shared/startup/bspgetworkarea.c ../../shared/bootcard.c \

View File

@@ -113,8 +113,8 @@ _start:
/* Let her rip */
bl FUNC_NAME(boot_card)
/* return value from boot_card is argument to exit */
bl FUNC_NAME(exit)
trap
li 10,99 /* 0x63 */
sc
.Lstart:
.size _start,.Lstart-_start

View File

@@ -1,16 +0,0 @@
/*
* 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.rtems.com/license/LICENSE.
*
* $Id$
*/
void bsp_cleanup( void )
{
asm volatile( "li 10,99" ); /* 0x63 */
asm volatile( "sc" );
}