From 47a3cd8f73780bad3eff5135f0eb58e8c98af91d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 9 Aug 2012 16:48:00 +0200 Subject: 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. --- c/src/lib/libbsp/shared/bsplibc.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'c/src/lib/libbsp/shared/bsplibc.c') diff --git a/c/src/lib/libbsp/shared/bsplibc.c b/c/src/lib/libbsp/shared/bsplibc.c index 90ba6132b1..181dcff303 100644 --- a/c/src/lib/libbsp/shared/bsplibc.c +++ b/c/src/lib/libbsp/shared/bsplibc.c @@ -9,14 +9,8 @@ #include -void bsp_libc_init( - void *heap_begin, - uintptr_t heap_size, - size_t sbrk_amount -) +void bsp_libc_init(void) { - RTEMS_Malloc_Initialize( heap_begin, heap_size, sbrk_amount ); - /* * Init the RTEMS libio facility to provide UNIX-like system * calls for use by newlib (ie: provide open, close, etc) -- cgit v1.2.3