source: rtems/c/src/lib/libbsp/shared/bsplibc.c @ 93c2b41

4.104.114.84.95
Last change on this file since 93c2b41 was 93c2b41, checked in by Joel Sherrill <joel.sherrill@…>, on 05/10/07 at 18:40:36

Back off patch which should not have been committed.

  • Property mode set to 100644
File size: 881 bytes
RevLine 
[c0daf807]1/*
[08311cc3]2 *  COPYRIGHT (c) 1989-1999.
[c0daf807]3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  $Id$
6 */
7
8#include <rtems.h>
[6b52fe5]9#include <rtems/libio.h>
[978d328]10#include <rtems/libcsupport.h>
[c0daf807]11
12extern rtems_configuration_table  BSP_Configuration;
13
14void bsp_libc_init(
15  void       *heap_start,
[a2ac7e10]16  uint32_t    heap_size,
[c0daf807]17  int         use_sbrk
18)
19{
[e60d75d]20    RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk );
[c0daf807]21
22    /*
23     *  Init the RTEMS libio facility to provide UNIX-like system
[07a3253d]24     *  calls for use by newlib (ie: provide open, close, etc)
[c0daf807]25     *  Uses malloc() to get area for the iops, so must be after malloc init
26     */
27
28    rtems_libio_init();
29
30    /*
31     * Set up for the libc handling.
32     */
33
[93c2b41]34    if ( BSP_Configuration.ticks_per_timeslice > 0 )
35        libc_init(1);                /* reentrant if possible */
36    else
37        libc_init(0);                /* non-reentrant */
[c0daf807]38}
Note: See TracBrowser for help on using the repository browser.