Delete empty libc_init()

This commit is contained in:
Sebastian Huber
2015-11-25 09:01:57 +01:00
parent ac5f2442e3
commit 443c61ec94
5 changed files with 1 additions and 54 deletions

View File

@@ -334,8 +334,6 @@ void bsp_start( void )
/*
* Set up our hooks
* Make sure libc_init is done before drivers initialized so that
* they can use atexit()
*/
bsp_clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000);

View File

@@ -16,9 +16,4 @@ void bsp_libc_init(void)
* Uses malloc() to get area for the iops, so must be after malloc init
*/
(*rtems_libio_init_helper)();
/*
* Set up for the libc handling.
*/
libc_init();
}

View File

@@ -109,7 +109,7 @@ TERMINAL_IDENTIFICATION_C_FILES += src/ttyname.c
LIBC_GLUE_C_FILES = src/__getpid.c src/__gettod.c src/__times.c \
src/truncate.c src/access.c src/stat.c src/lstat.c src/pathconf.c \
src/newlibc_reent.c src/newlibc_init.c src/newlibc_exit.c \
src/newlibc_reent.c src/newlibc_exit.c \
src/kill_noposix.c src/utsname.c src/realpath.c
BSD_LIBC_C_FILES = src/strlcpy.c src/strlcat.c src/issetugid.c

View File

@@ -57,7 +57,6 @@ void malloc_set_heap_pointer(Heap_Control *new_heap);
* This routine is primarily used for debugging.
*/
Heap_Control *malloc_get_heap_pointer( void );
extern void libc_init(void);
extern int host_errno(void);
extern void fix_syscall_errno(void);

View File

@@ -1,45 +0,0 @@
/**
* @file
*
* @brief Newlib Initialization
* @ingroup libcsupport
*/
/*
* Implementation of hooks for the CYGNUS newlib libc
* These hooks set things up so that:
* + '_REENT' is switched at task switch time.
*
* COPYRIGHT (c) 1994 by Division Incorporated
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*
*/
#if HAVE_CONFIG_H
#include "config.h"
#endif
#if defined(RTEMS_NEWLIB)
#include <rtems/libcsupport.h>
/**
* Init libc for CYGNUS newlib
*
* Set up _REENT to use our global libc_global_reent.
* (newlib provides a global of its own, but we prefer our own name for it)
*
* If reentrancy is desired (which it should be), then
* we install the task extension hooks to maintain the
* newlib reentrancy global variable _REENT on task
* create, delete, switch, exit, etc.
*
*/
void
libc_init(void)
{
}
#endif