From 38e4a9169a295b9f00e2bd80c292f62765641926 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 13 Jul 1999 14:54:16 +0000 Subject: Patch from Rosimildo DaSilva to readd calls to init() and fini() routines. --- c/src/lib/libbsp/shared/bootcard.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'c') 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); -- cgit v1.2.3