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

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 706 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-2008.
3 *  On-Line Applications Research Corporation (OAR).
4 */
5
6#include <rtems.h>
7#include <rtems/libio.h>
8#include <rtems/libcsupport.h>
9
10#include <bsp/bootcard.h>
11
12void bsp_libc_init(
13  void *heap_begin,
14  uintptr_t heap_size,
15  size_t sbrk_amount
16)
17{
18    RTEMS_Malloc_Initialize( heap_begin, heap_size, sbrk_amount );
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    if (rtems_libio_init_helper)
26        (*rtems_libio_init_helper)();
27
28    /*
29     * Set up for the libc handling.
30     */
31    libc_init();
32}
Note: See TracBrowser for help on using the repository browser.