4.104.114.95
Last change
on this file since 075d817 was
4e9893b1,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/11/07 at 15:50:53
|
2007-12-11 Joel Sherrill <joel.sherrill@…>
- bootcard.c, bsplibc.c: Eliminate copies of the Configuration Table.
Use the RTEMS provided accessor macros to obtain configuration
fields.
|
-
Property mode set to
100644
|
File size:
835 bytes
|
Line | |
---|
1 | /* |
---|
2 | * COPYRIGHT (c) 1989-1999. |
---|
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 | void bsp_libc_init( |
---|
13 | void *heap_start, |
---|
14 | uint32_t heap_size, |
---|
15 | int use_sbrk |
---|
16 | ) |
---|
17 | { |
---|
18 | RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk ); |
---|
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 | |
---|
26 | rtems_libio_init(); |
---|
27 | |
---|
28 | /* |
---|
29 | * Set up for the libc handling. |
---|
30 | */ |
---|
31 | |
---|
32 | if ( rtems_configuration_get_ticks_per_timeslice() > 0 ) |
---|
33 | libc_init(1); /* reentrant if possible */ |
---|
34 | else |
---|
35 | libc_init(0); /* non-reentrant */ |
---|
36 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.