From 66565bb2172e529dd66f572972ca5bbea1342a8f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 18 Mar 2003 19:24:13 +0000 Subject: 2003-03-18 Till Straumann 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). --- cpukit/score/ChangeLog | 8 ++++++++ cpukit/score/src/threadhandler.c | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) (limited to 'cpukit/score') 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 + + 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 * 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 -- cgit v1.2.3