diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-14 21:38:25 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-14 21:38:25 +0000 |
commit | 6a39cd4fec7dadd27f53b7943f77881da4bb884c (patch) | |
tree | 2545f93ba7b769d7af9691801a08d24cac61b452 /c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c | |
parent | 2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-6a39cd4fec7dadd27f53b7943f77881da4bb884c.tar.bz2 |
2008-09-14 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 '')
-rw-r--r-- | c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c b/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c index 0c1be686cb..612cdbad60 100644 --- a/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c +++ b/c/src/lib/libbsp/mips/jmr3904/startup/bspstart.c @@ -18,27 +18,6 @@ #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 -) -{ - extern int WorkspaceBase; - extern int end; - - *work_area_start = &WorkspaceBase; - *work_area_size = (void *)&end - (void *)&WorkspaceBase; - *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. @@ -61,7 +40,8 @@ void clear_cache( void *address, size_t n ) } /* Structure filled in by get_mem_info. Only the size field is - actually used (to clear bss), so the others aren't even filled in. */ + * actually used (to clear bss), so the others aren't even filled in. + */ struct s_mem { |