2003-03-18 Till Straumann <strauman@slac.stanford.edu>

PR 356/bsps
	* src/threadhandlerc: This patch makes RTEMS/PowerPC eabi compliant.
	Let Thread_Handler verify that _init/_main are non-NULL
	before calling them (gives the linker script/user more
	freedom to handle special cases).
This commit is contained in:
Joel Sherrill
2003-03-18 19:24:28 +00:00
parent 9cfccae23f
commit 2e0ee93e04
2 changed files with 10 additions and 2 deletions

View File

@@ -1,3 +1,11 @@
2003-03-18 Till Straumann <strauman@slac.stanford.edu>
PR 356/bsps
* src/threadhandlerc: This patch makes RTEMS/PowerPC eabi compliant.
Let Thread_Handler verify that _init/_main are non-NULL
before calling them (gives the linker script/user more
freedom to handle special cases).
2002-03-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2002-03-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/system.h: Add __RTEMS_REVISION__. * include/rtems/system.h: Add __RTEMS_REVISION__.

View File

@@ -109,11 +109,11 @@ void _Thread_Handler( void )
_Thread_Enable_dispatch(); _Thread_Enable_dispatch();
#if defined(__USE_INIT_FINI__) #if defined(__USE_INIT_FINI__)
if (!doneCons) if (!doneCons && _init)
_init (); _init ();
#endif #endif
#if defined(__USE__MAIN__) #if defined(__USE__MAIN__)
if (!doneCons) if (!doneCons && _main)
__main (); __main ();
#endif #endif