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

4.104.115
Last change on this file since bc98089 was 8634637, checked in by Joel Sherrill <joel.sherrill@…>, on 09/08/09 at 13:35:07

2009-09-08 Sebastian Huber <sebastian.huber@…>

  • include/irq-config.h, include/irq-generic.h, include/irq-info.h, src/irq-generic.c, src/irq-info.c, src/irq-legacy.c, src/irq-shell.c: Format, cleanup and documentation.
  • src/irq-server.c: New file.
  • include/bootcard.h, include/stackalloc.h, src/stackalloc.c, bsplibc.c: Update for heap API changes. Documentation.
  • Property mode set to 100644
File size: 718 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_begin,
16  uintptr_t heap_size,
17  size_t sbrk_amount
18)
19{
20    RTEMS_Malloc_Initialize( heap_begin, 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    libc_init();
34}
Note: See TracBrowser for help on using the repository browser.