From 8e0dcadec548ebd6d2f581c3bcc46d70e147a793 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 15 Jun 1999 22:01:04 +0000 Subject: Patch from Rosimildo DaSilva to make C++ exceptions work on the pc386 BSP with i386-elf. This patch also included changes to the i386-rtemself egcs configuration. --- c/src/lib/libbsp/shared/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'c/src/lib/libbsp/shared/main.c') 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); /* -- cgit v1.2.3