diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-15 22:05:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-15 22:05:03 +0000 |
commit | fe6cce1cda39dcb07042d2d9f2a8595a46017d31 (patch) | |
tree | 552ff76eb08afed149b9223d752c758865f71de0 /c/src/lib/libbsp/powerpc/mbx8xx | |
parent | 2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-fe6cce1cda39dcb07042d2d9f2a8595a46017d31.tar.bz2 |
2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* startup/bspstart.c, startup/bspstart.c.nocache: Add use of
bsp_get_work_area() in its own file and rely on BSP Framework to
perform more initialization.
Diffstat (limited to 'c/src/lib/libbsp/powerpc/mbx8xx')
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog | 6 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache | 58 |
3 files changed, 6 insertions, 60 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog index 23aee2d753..64b2209339 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog +++ b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog @@ -1,3 +1,9 @@ +2008-09-15 Joel Sherrill <joel.sherrill@oarcorp.com> + + * startup/bspstart.c, startup/bspstart.c.nocache: Add use of + bsp_get_work_area() in its own file and rely on BSP Framework to + perform more initialization. + 2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com> * Makefile.am, configure.ac, startup/bspstart.c, startup/linkcmds: diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c index f81690fe24..8afc106fc5 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c @@ -20,8 +20,6 @@ #warning The interrupt disable mask is now stored in SPRG0, please verify that this is compatible to this BSP (see also bootcard.c). -#include <string.h> - #include <bsp.h> #include <bsp/irq.h> #include <rtems/libio.h> diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache index b2555e2d15..530edd671e 100644 --- a/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache +++ b/c/src/lib/libbsp/powerpc/mbx8xx/startup/bspstart.c.nocache @@ -18,11 +18,7 @@ * $Id$ */ -#include <string.h> - #include <bsp.h> -#include <rtems/libio.h> -#include <rtems/libcsupport.h> /* * Driver configuration parameters @@ -38,47 +34,6 @@ uint32_t bsp_timer_least_valid; /* Least valid number from timer */ bool bsp_timer_internal_clock; /* TRUE, when timer runs with CPU clk */ /* - * Use the shared implementations of the following routines. - * Look in rtems/c/src/lib/libbsp/shared/bsppost.c and - * rtems/c/src/lib/libbsp/shared/bsplibc.c. - */ -void bsp_libc_init( void *, uint32_t, int ); - -/* - * bsp_pretasking_hook - * - * Called when RTEMS initialization is complete but before interrupts and - * tasking are enabled. Used to setup libc and install any BSP extensions. - * - * Must not use libc (to do io) from here, since drivers are not yet - * initialized. - * - * Input parameters: NONE - * - * Output parameters: NONE - * - * Return values: NONE - */ -void bsp_pretasking_hook(void) -{ - /* - * These are assigned addresses in the linkcmds file for the BSP. This - * approach is better than having these defined as manifest constants and - * compiled into the kernel, but it is still not ideal when dealing with - * multiprocessor configuration in which each board as a different memory - * map. A better place for defining these symbols might be the makefiles. - * Consideration should also be given to developing an approach in which - * the kernel and the application can be linked and burned into ROM - * independently of each other. - */ - extern unsigned char _HeapStart; - extern unsigned char _HeapEnd; - - bsp_libc_init( &_HeapStart, &_HeapEnd - &_HeapStart, 0 ); -} - - -/* * bsp_start() * * Board-specific initialization code. Called from the generic boot_card() @@ -104,7 +59,6 @@ void bsp_pretasking_hook(void) */ void bsp_start(void) { - extern void *_WorkspaceBase; uint32_t r1; mmu_init(); @@ -129,18 +83,6 @@ void bsp_start(void) #endif /* - * Allocate the memory for the RTEMS Work Space. This can come from - * a variety of places: hard coded address, malloc'ed from outside - * RTEMS world (e.g. simulator or primitive memory manager), or (as - * typically done by stock BSPs) by subtracting the required amount - * of work space from the last physical address on the CPU board. - * - * In this case, the memory is not malloc'ed. It is just - * "pulled from the air". - */ - Configuration.work_space_start = (void *)&_WorkspaceBase; - - /* * initialize the device driver parameters */ bsp_clicks_per_usec = 1; /* for 4MHz extclk */ |