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>
* shared/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>
* shared/bspstart.c, shared/start.S: Add capability for bootcard.c BSP

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>
* Makefile.am, configure.ac, startup/bspstart.c: Add capability for

View File

@@ -24,6 +24,7 @@
#include <string.h>
#include <bsp.h>
#include <bsp/bootcard.h>
#include <rtems/bspIo.h>
/*
@@ -74,10 +75,11 @@ void bsp_pretasking_hook(void)
* 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
)
{
/* Tells us where to put the workspace in case remote debugger is present. */
@@ -85,9 +87,10 @@ void bsp_get_workarea(
/* must be identical to STACK_SIZE in start.S */
#define STACK_SIZE (16 * 1024)
*workarea_base = &end;
*workarea_size = (void *)rdb_start - (void *)&end - STACK_SIZE;
*requested_heap_size = 0;
*work_area_start = &end;
*work_area_size = (void *)rdb_start - (void *)&end - STACK_SIZE;
*heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
*heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
}
/*

View File

@@ -22,6 +22,7 @@
#include <string.h>
#include <bsp.h>
#include <bsp/bootcard.h>
#include <rtems/libio.h>
#include <rtems/libcsupport.h>
#include <rtems/bspIo.h>
@@ -65,10 +66,11 @@ void bsp_pretasking_hook(void)
* 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
)
{
/* Tells us where to put the workspace in case remote debugger is present. */
@@ -76,9 +78,10 @@ void bsp_get_workarea(
/* must be identical to STACK_SIZE in start.S */
#define STACK_SIZE (16 * 1024)
*workarea_base = &end;
*workarea_size = (void *)rdb_start - (void *)&end - STACK_SIZE;
*requested_heap_size = 0;
*work_area_start = &end;
*work_area_size = (void *)rdb_start - (void *)&end - STACK_SIZE;
*heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA;
*heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT;
}
/*