diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-16 19:05:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-16 19:05:15 +0000 |
commit | cc1f6238841a17adc93067cbd1256034491cbc45 (patch) | |
tree | a33c2a048bff439efcad1b81737f819f435479ce /c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c | |
parent | 2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-cc1f6238841a17adc93067cbd1256034491cbc45.tar.bz2 |
2008-09-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, startup/bspstart.c: Split out bsp_get_work_area() into
its own file and use BSP Framework to perform more initialization.
* startup/bspgetworkarea.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c index 04647b9f02..c6b930e534 100644 --- a/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/tqm8xx/startup/bspstart.c @@ -20,11 +20,7 @@ * $Id$ */ -#include <string.h> - -#include <rtems/libio.h> -#include <rtems/libcsupport.h> -#include <rtems/score/thread.h> +#include <rtems.h> #include <libcpu/powerpc-utility.h> @@ -81,11 +77,6 @@ void _BSP_Fatal_error( unsigned n) } } -void bsp_pretasking_hook( void) -{ - /* Do noting */ -} - const char *bsp_tqm_get_cib_string( const char *cib_id) { char srch_pattern[10] = ""; @@ -132,16 +123,6 @@ rtems_status_code bsp_tqm_get_cib_uint32( const char *cib_id, return RTEMS_SUCCESSFUL; } -void bsp_get_work_area( void **work_area_start, size_t *work_area_size, void **heap_start, size_t *heap_size) -{ - char *ram_end = (char *) (TQM_BD_INFO.sdram_size - (uint32_t)TopRamReserved); - - *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) { ppc_cpu_id_t myCpu; |