From 1f94ed6bfdb8b83fcfcb59db0a9f76eb950b4db0 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 22 Apr 1996 16:50:17 +0000 Subject: Updates from Tony Bennett. --- c/src/lib/libbsp/unix/posix/startup/bspstart.c | 18 +++++++----------- c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc | 5 ----- c/src/lib/libbsp/unix/posix/startup/setvec.c | 2 +- 3 files changed, 8 insertions(+), 17 deletions(-) (limited to 'c/src/lib/libbsp/unix/posix/startup') diff --git a/c/src/lib/libbsp/unix/posix/startup/bspstart.c b/c/src/lib/libbsp/unix/posix/startup/bspstart.c index 94da2e6fc8..8f8344523a 100644 --- a/c/src/lib/libbsp/unix/posix/startup/bspstart.c +++ b/c/src/lib/libbsp/unix/posix/startup/bspstart.c @@ -1,8 +1,3 @@ -/* - * @(#)bspstart.c 1.7 - 95/04/07 - * - */ - /* bsp_start() * * This routine starts the application. It includes application, @@ -55,7 +50,6 @@ rtems_unsigned32 bsp_isr_level; rtems_unsigned32 Heap_size; int rtems_argc; char **rtems_argv; -char **rtems_envp; /* * May be overridden by RTEMS_WORKSPACE_SIZE and RTEMS_HEAPSPACE_SIZE @@ -167,6 +161,13 @@ bsp_pretasking_hook(void) #ifdef RTEMS_DEBUG rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); #endif + + /* + * Dump malloc stats on exit... + */ +#if defined(RTEMS_DEBUG) + atexit(malloc_dump); +#endif } /* @@ -198,11 +199,6 @@ bsp_postdriver_hook(void) if ((stdin_fd != 0) || (stdout_fd != 1) || (stderr_fd != 2)) rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' ); #endif - -#if defined(MALLOC_STATS) - atexit(malloc_dump); -#endif - } /* diff --git a/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc b/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc index 0b4278eb19..87dba921a7 100644 --- a/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc +++ b/c/src/lib/libbsp/unix/posix/startup/rtems-ctor.cc @@ -1,7 +1,3 @@ -// -// @(#)rtems-ctor.cc 1.6 - 95/04/25 -// - /* * rtems-ctor.cc * @@ -90,7 +86,6 @@ extern "C" { { rtems_argc = argc; rtems_argv = argv; - rtems_envp = environp; if ((argc > 0) && argv && argv[0]) rtems_progname = argv[0]; diff --git a/c/src/lib/libbsp/unix/posix/startup/setvec.c b/c/src/lib/libbsp/unix/posix/startup/setvec.c index 9825faa19b..4f65fb57e5 100644 --- a/c/src/lib/libbsp/unix/posix/startup/setvec.c +++ b/c/src/lib/libbsp/unix/posix/startup/setvec.c @@ -31,7 +31,7 @@ set_vector( /* returns old vector */ int type /* RTEMS or RAW intr */ ) { - rtems_isr_entry rtems_isr_ptr; + rtems_isr_entry rtems_isr_ptr = 0; proc_ptr raw_isr_ptr; if ( type ) { -- cgit v1.2.3