Changed bsp_get_workarea() to bsp_get_work_area() and

added support for an optional separate heap area.
This commit is contained in:
Thomas Doerfler
2008-07-24 14:52:55 +00:00
parent 075d81772d
commit d4886a0695
26 changed files with 280 additions and 141 deletions

View File

@@ -1,3 +1,9 @@
2008-07-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
* startup/bspstart.c: Changed bsp_get_workarea() to
bsp_get_work_area() and added support for an optional separate heap
area.
2008-05-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, startup/bspstart.c: Add capability for bootcard.c BSP

View File

@@ -15,24 +15,27 @@
*/
#include <bsp.h>
#include <bsp/bootcard.h>
/*
* This method returns the base address and size of the area which
* is to be allocated between the RTEMS Workspace and the C Program
* Heap.
*/
void bsp_get_workarea(
void **workarea_base,
size_t *workarea_size,
size_t *requested_heap_size
void bsp_get_work_area(
void **work_area_start,
size_t *work_area_size,
void **heap_start,
size_t *heap_size
)
{
extern int WorkspaceBase;
extern int end;
*workarea_base = &WorkspaceBase;
*workarea_size = (void *)&end - (void *)&WorkspaceBase;
*requested_heap_size = 0;
*work_area_start = &WorkspaceBase;
*work_area_size = (void *)&end - (void *)&WorkspaceBase;
*heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
*heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
}
/*