diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-06-15 22:01:04 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-06-15 22:01:04 +0000 |
commit | 8e0dcadec548ebd6d2f581c3bcc46d70e147a793 (patch) | |
tree | 829cbc25e454a3c3a5109688f3210f29b5c680ca /c/src/lib/libbsp/shared | |
parent | Directives -> services. (diff) | |
download | rtems-8e0dcadec548ebd6d2f581c3bcc46d70e147a793.tar.bz2 |
Patch from Rosimildo DaSilva <rdasilva@connecttel.com> to make C++
exceptions work on the pc386 BSP with i386-elf. This patch also
included changes to the i386-rtemself egcs configuration.
Diffstat (limited to 'c/src/lib/libbsp/shared')
-rw-r--r-- | c/src/lib/libbsp/shared/main.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/shared/main.c b/c/src/lib/libbsp/shared/main.c index a23e2d8a45..d516ff9b08 100644 --- a/c/src/lib/libbsp/shared/main.c +++ b/c/src/lib/libbsp/shared/main.c @@ -28,6 +28,11 @@ extern rtems_configuration_table Configuration; extern rtems_configuration_table BSP_Configuration; extern rtems_cpu_table Cpu_table; +#if defined(USE_INIT_FINI) +extern void _fini( void ); +extern void _init( void ); +#endif + rtems_interrupt_level bsp_isr_level; /* @@ -82,6 +87,11 @@ int boot_card(int argc, char **argv) * are any. */ +#if defined(USE_INIT_FINI) + atexit( _fini ); + _init(); +#endif + status = main(argc, argv); /* |