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

4.115
Last change on this file since 38c0b112 was 47a3cd8, checked in by Sebastian Huber <sebastian.huber@…>, on 08/09/12 at 14:48:00

score: Work area initialization API change

The work areas (RTEMS work space and C program heap) will be initialized
now in a separate step and are no longer part of
rtems_initialize_data_structures(). Initialization is performed with
tables of Heap_Area entries. This allows usage of scattered memory
areas present on various small scale micro-controllers.

The sbrk() support API changes also. The bsp_sbrk_init() must now deal
with a minimum size for the first memory chunk to take the configured
work space size into account.

  • Property mode set to 100644
File size: 577 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(void)
13{
14    /*
15     *  Init the RTEMS libio facility to provide UNIX-like system
16     *  calls for use by newlib (ie: provide open, close, etc)
17     *  Uses malloc() to get area for the iops, so must be after malloc init
18     */
19    if (rtems_libio_init_helper)
20        (*rtems_libio_init_helper)();
21
22    /*
23     * Set up for the libc handling.
24     */
25    libc_init();
26}
Note: See TracBrowser for help on using the repository browser.