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

4.104.115
Last change on this file since a4b3969 was a4b3969, checked in by Joel Sherrill <joel.sherrill@…>, on 09/17/08 at 16:16:31

2008-09-17 Miao Yan <yanmiaobest@…>

  • bsplibc.c, bsppost.c: Merge GSOC project code to add simple device only filesystem (devfs), optionally completely drop out filesystem, and to clean up disabling newlib reentrancy support. This dropped 17K from the minimum.exe for sparc/sis and arm/rtl22xx_t now has a 15K code space.
  • Property mode set to 100644
File size: 720 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
12#include <bsp/bootcard.h>
13
14void bsp_libc_init(
15  void   *heap_start,
16  size_t  heap_size,
17  size_t  sbrk_amount
18)
19{
20    RTEMS_Malloc_Initialize( heap_start, heap_size, sbrk_amount );
21
22    /*
23     *  Init the RTEMS libio facility to provide UNIX-like system
24     *  calls for use by newlib (ie: provide open, close, etc)
25     *  Uses malloc() to get area for the iops, so must be after malloc init
26     */
27    if (rtems_libio_init_helper)
28        (*rtems_libio_init_helper)();
29
30    /*
31     * Set up for the libc handling.
32     */
33
34    libc_init();
35}
Note: See TracBrowser for help on using the repository browser.