diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-16 19:06:45 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-16 19:06:45 +0000 |
commit | e76068d31feda0483fb2a83fcafe366c08dfc76c (patch) | |
tree | 203af67b4834dc0aad94da9a3b2f253fc17c6f53 /c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c | |
parent | 2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-e76068d31feda0483fb2a83fcafe366c08dfc76c.tar.bz2 |
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/bspstart.c: Add use of bsp_get_work_area() in
its own file and rely on BSP Framework to perform more
initialization. Remove unnecessary includes of rtems/libio.h and
rtems/libcsupport.h.
* startup/bspgetworkarea.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c index ea5df3e875..46ef22ac75 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/bspstart.c @@ -20,12 +20,6 @@ * $Id$ */ -#include <string.h> - -#include <rtems/libio.h> -#include <rtems/libcsupport.h> -#include <rtems/score/thread.h> - #include <libcpu/powerpc-utility.h> #include <libcpu/raw_exception.h> @@ -87,25 +81,6 @@ void _BSP_Fatal_error(unsigned n) } } -void bsp_get_work_area( - void **work_area_start, - size_t *work_area_size, - void **heap_start, - size_t *heap_size) -{ -#ifdef HAS_UBOOT - char *ram_end = (char *) mpc83xx_uboot_board_info.bi_memstart + - mpc83xx_uboot_board_info.bi_memsize; -#else /* HAS_UBOOT */ - char *ram_end = bsp_ram_end; -#endif /* HAS_UBOOT */ - - *work_area_start = bsp_work_area_start; - *work_area_size = ram_end - bsp_work_area_start; - *heap_start = BSP_BOOTCARD_HEAP_USES_WORK_AREA; - *heap_size = BSP_BOOTCARD_HEAP_SIZE_DEFAULT; -} - void bsp_start( void) { rtems_status_code sc = RTEMS_SUCCESSFUL; |