4.115
Last change
on this file since 6b4e448 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:
870 bytes
|
Line | |
---|
1 | /* |
---|
2 | * RTEMS Malloc Family Internal Header |
---|
3 | * |
---|
4 | * COPYRIGHT (c) 1989-2007. |
---|
5 | * On-Line Applications Research Corporation (OAR). |
---|
6 | * |
---|
7 | * The license and distribution terms for this file may be |
---|
8 | * found in the file LICENSE in this distribution or at |
---|
9 | * http://www.rtems.com/license/LICENSE. |
---|
10 | */ |
---|
11 | |
---|
12 | #define __RTEMS_VIOLATE_KERNEL_VISIBILITY__ |
---|
13 | #include <rtems.h> |
---|
14 | #include <rtems/libcsupport.h> |
---|
15 | #include <rtems/score/protectedheap.h> |
---|
16 | #include <rtems/malloc.h> |
---|
17 | |
---|
18 | #ifdef RTEMS_NEWLIB |
---|
19 | #include <sys/reent.h> |
---|
20 | #endif |
---|
21 | |
---|
22 | #include <stdint.h> |
---|
23 | #include <rtems/chain.h> |
---|
24 | |
---|
25 | /* |
---|
26 | * Malloc Statistics Structure |
---|
27 | */ |
---|
28 | extern rtems_malloc_statistics_t rtems_malloc_statistics; |
---|
29 | |
---|
30 | #define MSBUMP(_f,_n) rtems_malloc_statistics._f += (_n) |
---|
31 | |
---|
32 | /* |
---|
33 | * Process deferred free operations |
---|
34 | */ |
---|
35 | bool malloc_is_system_state_OK(void); |
---|
36 | void malloc_deferred_frees_process(void); |
---|
37 | void malloc_deferred_free(void *); |
---|
Note: See
TracBrowser
for help on using the repository browser.