source: rtems/c/src/lib/libbsp/shared/bsplibc.c @ 5a21e2fe

4.104.114.95
Last change on this file since 5a21e2fe was 5a21e2fe, checked in by Joel Sherrill <joel.sherrill@…>, on 08/05/08 at 16:52:01

2008-08-05 Joel Sherrill <joel.sherrill@…>

PR 537/bsps

  • bsplibc.c: Eliminate vestiges of ticks_per_timeslice controlling newlib reentrancy. The parameter was ignored in libc_init().
  • Property mode set to 100644
File size: 660 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2008.
3 *  On-Line Applications Research Corporation (OAR).
4 *
5 *  $Id$
6 */
7
8#include <rtems.h>
9#include <rtems/libio.h>
10#include <rtems/libcsupport.h>
11
12void bsp_libc_init(
13  void       *heap_start,
14  uint32_t    heap_size,
15  int         use_sbrk
16)
17{
18    RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk );
19
20    /*
21     *  Init the RTEMS libio facility to provide UNIX-like system
22     *  calls for use by newlib (ie: provide open, close, etc)
23     *  Uses malloc() to get area for the iops, so must be after malloc init
24     */
25
26    rtems_libio_init();
27
28    /*
29     * Set up for the libc handling.
30     */
31
32    libc_init();
33}
Note: See TracBrowser for help on using the repository browser.