summaryrefslogtreecommitdiffstats
path: root/cpukit/score/src
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2003-03-18 19:24:13 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2003-03-18 19:24:13 +0000
commit66565bb2172e529dd66f572972ca5bbea1342a8f (patch)
tree3965298e5f04b479db25ee053dc555a9215a900d /cpukit/score/src
parent2003-03-18 Till Straumann <strauman@slac.stanford.edu> (diff)
downloadrtems-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 'cpukit/score/src')
-rw-r--r--cpukit/score/src/threadhandler.c4
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