forked from Imagelibrary/rtems
2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* shared/bspstart.c: Use shared bsp_get_work_area() in its own file and rely on BSP Framework to perform more initialization. * shared/bspgetworkarea.c: New file.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
|
||||||
|
|
||||||
|
* shared/bspstart.c: Use shared bsp_get_work_area() in its own file and
|
||||||
|
rely on BSP Framework to perform more initialization.
|
||||||
|
* shared/bspgetworkarea.c: New file.
|
||||||
|
|
||||||
2008-08-18 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2008-08-18 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* shared/bspstart.c: Remove bogus local declaration.
|
* shared/bspstart.c: Remove bogus local declaration.
|
||||||
|
|||||||
39
c/src/lib/libbsp/sparc/shared/bspgetworkarea.c
Normal file
39
c/src/lib/libbsp/sparc/shared/bspgetworkarea.c
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* This set of routines are the BSP specific initialization
|
||||||
|
* support routines.
|
||||||
|
*
|
||||||
|
* COPYRIGHT (c) 1989-2008.
|
||||||
|
* On-Line Applications Research Corporation (OAR).
|
||||||
|
*
|
||||||
|
* The license and distribution terms for this file may be
|
||||||
|
* found in the file LICENSE in this distribution or at
|
||||||
|
* http://www.rtems.com/license/LICENSE.
|
||||||
|
*
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
|
#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_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. */
|
||||||
|
extern uint32_t rdb_start;
|
||||||
|
/* must be identical to STACK_SIZE in start.S */
|
||||||
|
#define STACK_SIZE (16 * 1024)
|
||||||
|
|
||||||
|
*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;
|
||||||
|
}
|
||||||
@@ -59,29 +59,6 @@ void bsp_pretasking_hook(void)
|
|||||||
bsp_spurious_initialize();
|
bsp_spurious_initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
* 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_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. */
|
|
||||||
extern uint32_t rdb_start;
|
|
||||||
/* must be identical to STACK_SIZE in start.S */
|
|
||||||
#define STACK_SIZE (16 * 1024)
|
|
||||||
|
|
||||||
*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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* bsp_start
|
* bsp_start
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user