diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-05 21:50:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-11-05 21:50:11 +0000 |
commit | d10477877d2144b0a3d02a11a3a6fc8c9f22422d (patch) | |
tree | c4b75ec428e541831fabe51ef2780c51343ed032 /cpukit/score/src/threadhandler.c | |
parent | 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-d10477877d2144b0a3d02a11a3a6fc8c9f22422d.tar.bz2 |
2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/threadhandler.c: M32R uses different name for init.
Diffstat (limited to 'cpukit/score/src/threadhandler.c')
-rw-r--r-- | cpukit/score/src/threadhandler.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/cpukit/score/src/threadhandler.c b/cpukit/score/src/threadhandler.c index 22c9f141cc..cc46f9801a 100644 --- a/cpukit/score/src/threadhandler.c +++ b/cpukit/score/src/threadhandler.c @@ -35,7 +35,13 @@ #endif #if defined(__USE_INIT_FINI__) - extern void _init(void); + #if defined(__M32R__) + #define INIT_NAME __init + #else + #define INIT_NAME _init + #endif + + extern void INIT_NAME(void); #endif #if defined(__USE__MAIN__) extern void _main(void); @@ -131,7 +137,7 @@ void _Thread_Handler( void ) */ if (!doneCons) /* && (volatile void *)_init) */ { - _init (); + INIT_NAME (); } #endif #if defined(__USE__MAIN__) |