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

4.104.114.84.95
Last change on this file since 6b52fe5 was 6b52fe5, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 27, 1998 at 2:17:16 PM

Fix from Ralf Corsepius:

+ adding #include <rtems/libio.h> to fix implicit declaration warning

  • Property mode set to 100644
File size: 937 bytes
Line 
1/*
2 *  COPYRIGHT (c) 1989-1998.
3 *  On-Line Applications Research Corporation (OAR).
4 *  Copyright assigned to U.S. Government, 1994.
5 *
6 *  $Id$
7 */
8
9#include <rtems.h>
10#include <rtems/libio.h>
11#include <libcsupport.h>
12
13extern rtems_configuration_table  BSP_Configuration;
14
15void bsp_libc_init(
16  void       *heap_start,
17  unsigned32  heap_size,
18  int         use_sbrk
19)
20{
21    RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk);
22
23    /*
24     *  Init the RTEMS libio facility to provide UNIX-like system
25     *  calls for use by newlib (ie: provide __rtems_open, __rtems_close, etc)
26     *  Uses malloc() to get area for the iops, so must be after malloc init
27     */
28
29    rtems_libio_init();
30
31    /*
32     * Set up for the libc handling.
33     */
34
35    if (BSP_Configuration.ticks_per_timeslice > 0)
36        libc_init(1);                /* reentrant if possible */
37    else
38        libc_init(0);                /* non-reentrant */
39}
Note: See TracBrowser for help on using the repository browser.