From ded197795917aad017d2868eeaea0b0cef724873 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 9 May 2007 18:29:29 +0000 Subject: 2007-05-09 Joel Sherrill * bootcard.c: Move __fini call to inside executive for symmettry with __init call. --- c/src/lib/libbsp/shared/ChangeLog | 5 +++++ c/src/lib/libbsp/shared/bootcard.c | 18 ------------------ 2 files changed, 5 insertions(+), 18 deletions(-) (limited to 'c/src/lib/libbsp/shared') diff --git a/c/src/lib/libbsp/shared/ChangeLog b/c/src/lib/libbsp/shared/ChangeLog index a78382bb9a..498c9c35f4 100644 --- a/c/src/lib/libbsp/shared/ChangeLog +++ b/c/src/lib/libbsp/shared/ChangeLog @@ -1,3 +1,8 @@ +2007-05-09 Joel Sherrill + + * bootcard.c: Move __fini call to inside executive for + symmettry with __init call. + 2007-04-17 Joel Sherrill * bootcard.c: RTEMS Workspace now defaults to not being zeroed. This diff --git a/c/src/lib/libbsp/shared/bootcard.c b/c/src/lib/libbsp/shared/bootcard.c index 1ec373d559..287fddc593 100644 --- a/c/src/lib/libbsp/shared/bootcard.c +++ b/c/src/lib/libbsp/shared/bootcard.c @@ -33,10 +33,6 @@ #include -#if defined(__USE_INIT_FINI__) -#include /* for atexit() */ -#endif - extern void bsp_start( void ); extern void bsp_cleanup( void ); @@ -50,11 +46,6 @@ rtems_api_configuration_table BSP_RTEMS_Configuration; posix_api_configuration_table BSP_POSIX_Configuration; #endif -/* Initialize C++ global Ctor/Dtor and initializes exception handling. */ -#if defined(__USE_INIT_FINI__) -extern void _fini( void ); -#endif - rtems_interrupt_level bsp_isr_level; /* @@ -126,15 +117,6 @@ int boot_card(int argc, char **argv, char **envp) bsp_isr_level = rtems_initialize_executive_early( &BSP_Configuration, &Cpu_table ); - /* - * The atexit hook will be before the static destructor list's entry - * point. - */ - -#if defined(__USE_INIT_FINI__) - atexit( _fini ); -#endif - /* * Call c_rtems_main() and eventually let the first task or the real * main() invoke the global constructors if there are any. -- cgit v1.2.3