4.104.114.84.95
Last change
on this file since 9847e4a0 was
9847e4a0,
checked in by Joel Sherrill <joel.sherrill@…>, on 05/10/07 at 18:39:03
|
2007-05-10 Joel Sherrill <joel.sherrill@…>
PR 1237/rtems
- src/lib/libbsp/shared/bsplibc.c: Add logic to prevent stack creep
when interrupts occur at a sufficient rate that the interrupted
thread never gets to clean its stack. This patch ensures that an
interrupted thread will not nest ISR dispatches on its stack.
|
-
Property mode set to
100644
|
File size:
758 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 | extern rtems_configuration_table BSP_Configuration; |
---|
13 | |
---|
14 | void bsp_libc_init( |
---|
15 | void *heap_start, |
---|
16 | uint32_t heap_size, |
---|
17 | int use_sbrk |
---|
18 | ) |
---|
19 | { |
---|
20 | RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk ); |
---|
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 | |
---|
28 | rtems_libio_init(); |
---|
29 | |
---|
30 | /* |
---|
31 | * Set up for the libc handling. |
---|
32 | */ |
---|
33 | |
---|
34 | libc_init(1); /* reentrant if possible */ |
---|
35 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.