diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-15 00:23:55 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-15 00:23:55 +0000 |
commit | 28b6765d41615abb319d3f11128daae4d9bfcf83 (patch) | |
tree | b93a9b71f0f0f78112152edbc3d98c8a00f988f9 /c/src/lib/libbsp/sparc/leon3/startup/bspstart.c | |
parent | 2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-28b6765d41615abb319d3f11128daae4d9bfcf83.tar.bz2 |
2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/bspstart.c: Use shared bsp_get_work_area() into
its own file and use BSP Framework to perform more initialization.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/sparc/leon3/startup/bspstart.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c b/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c index dd3b3d486e..0f7a8ba977 100644 --- a/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c +++ b/c/src/lib/libbsp/sparc/leon3/startup/bspstart.c @@ -19,20 +19,9 @@ */ -#include <string.h> - #include <bsp.h> -#include <bsp/bootcard.h> #include <rtems/bspIo.h> -/* must be identical to STACK_SIZE in start.S */ -#define STACK_SIZE 16 * 1024 - -/* - * Tells us where to put the workspace in case remote debugger is present. - */ -extern uint32_t rdb_start; - /* * Tells us if data cache snooping is available */ @@ -70,27 +59,6 @@ void bsp_pretasking_hook(void) } /* - * 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; - - *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 * * This routine does the bulk of the system initialization. |