diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-03-18 19:24:13 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-03-18 19:24:13 +0000 |
commit | 66565bb2172e529dd66f572972ca5bbea1342a8f (patch) | |
tree | 3965298e5f04b479db25ee053dc555a9215a900d /cpukit/score/src/threadhandler.c | |
parent | 2003-03-18 Till Straumann <strauman@slac.stanford.edu> (diff) | |
download | rtems-66565bb2172e529dd66f572972ca5bbea1342a8f.tar.bz2 |
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).
Diffstat (limited to '')
-rw-r--r-- | cpukit/score/src/threadhandler.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 |