diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-13 14:54:16 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-07-13 14:54:16 +0000 |
commit | 38e4a9169a295b9f00e2bd80c292f62765641926 (patch) | |
tree | 43216db9825f3a864ffeb7573177a2c4be3198f7 /c/src/lib/libbsp/shared/bootcard.c | |
parent | Patch from Eric Norum <eric@cls.usask.ca>: (diff) | |
download | rtems-38e4a9169a295b9f00e2bd80c292f62765641926.tar.bz2 |
Patch from Rosimildo DaSilva <rdasilva@connecttel.com> to readd calls to
init() and fini() routines.
Diffstat (limited to 'c/src/lib/libbsp/shared/bootcard.c')
-rw-r--r-- | c/src/lib/libbsp/shared/bootcard.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c index 9f7a3893ce..e8fae61bd7 100644 --- a/c/src/lib/libbsp/shared/bootcard.c +++ b/c/src/lib/libbsp/shared/bootcard.c @@ -26,6 +26,12 @@ extern rtems_configuration_table Configuration; extern rtems_configuration_table BSP_Configuration; extern rtems_cpu_table Cpu_table; +/* Initialize C++ global Ctor/Dtor and initializes exception handling. */ +#ifdef USE_INIT_FINI +extern void _fini( void ); +extern void _init( void ); +#endif + rtems_interrupt_level bsp_isr_level; /* @@ -79,6 +85,10 @@ int boot_card(int argc, char **argv) * Call main() and get the global constructors invoked if there * are any. */ +#ifdef USE_INIT_FINI + atexit( _fini ); + _init(); +#endif status = main(argc, argv); |