2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>

* score/src/threadhandler.c: M32R uses different name for init.
This commit is contained in:
Joel Sherrill
2008-11-05 21:50:11 +00:00
parent c41f9d6f23
commit d10477877d
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/src/threadhandler.c: M32R uses different name for init.
2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com> 2008-11-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* posix/Makefile.am: Add _execve() so we can use newlib posix support * posix/Makefile.am: Add _execve() so we can use newlib posix support

View File

@@ -35,7 +35,13 @@
#endif #endif
#if defined(__USE_INIT_FINI__) #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 #endif
#if defined(__USE__MAIN__) #if defined(__USE__MAIN__)
extern void _main(void); extern void _main(void);
@@ -131,7 +137,7 @@ void _Thread_Handler( void )
*/ */
if (!doneCons) /* && (volatile void *)_init) */ if (!doneCons) /* && (volatile void *)_init) */
{ {
_init (); INIT_NAME ();
} }
#endif #endif
#if defined(__USE__MAIN__) #if defined(__USE__MAIN__)