diff options
-rw-r--r-- | cpukit/score/ChangeLog | 8 | ||||
-rw-r--r-- | cpukit/score/src/threadhandler.c | 4 |
2 files changed, 10 insertions, 2 deletions
diff --git a/cpukit/score/ChangeLog b/cpukit/score/ChangeLog index d53dfc6537..576f0f0bbf 100644 --- a/cpukit/score/ChangeLog +++ b/cpukit/score/ChangeLog @@ -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> * include/rtems/system.h: Add __RTEMS_REVISION__. diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index e042cb68cf..82b3108079 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -109,11 +109,11 @@ void _Thread_Handler( void ) _Thread_Enable_dispatch(); #if defined(__USE_INIT_FINI__) - if (!doneCons) + if (!doneCons && _init) _init (); #endif #if defined(__USE__MAIN__) - if (!doneCons) + if (!doneCons && _main) __main (); #endif |