forked from Imagelibrary/rtems
Changed bsp_get_workarea() to bsp_get_work_area() and
added support for an optional separate heap area.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user