forked from Imagelibrary/rtems
2001-09-27 Eric Norum <eric.norum@usask.ca>
* hared/bootcard.c: Now process C++ global constructors (_init) as part of the first task execution not in BSP space. This depends on the toolset defining USE_INIT_FINI so you have to have the right toolset version.
This commit is contained in:
@@ -38,7 +38,6 @@ posix_api_configuration_table BSP_POSIX_Configuration;
|
||||
/* Initialize C++ global Ctor/Dtor and initializes exception handling. */
|
||||
#if defined(USE_INIT_FINI)
|
||||
extern void _fini( void );
|
||||
extern void _init( void );
|
||||
#endif
|
||||
|
||||
rtems_interrupt_level bsp_isr_level;
|
||||
@@ -120,7 +119,6 @@ int boot_card(int argc, char **argv, char **envp)
|
||||
*/
|
||||
#ifdef USE_INIT_FINI
|
||||
atexit( _fini );
|
||||
_init();
|
||||
#endif
|
||||
|
||||
status = main( argc, argv_p, envp_p );
|
||||
|
||||
Reference in New Issue
Block a user