diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-19 21:04:15 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-19 21:04:15 +0000 |
commit | 1a3db54805702c0efac91af825aebebac9b62439 (patch) | |
tree | b7eb3a2cd69d2fe48ce2f7cd6175e1c5ec74b3eb /c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c | |
parent | 2008-09-19 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-1a3db54805702c0efac91af825aebebac9b62439.tar.bz2 |
2008-09-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, include/bsp.h, startup/bspstart.c: Use PowerPC level
shared bsp_get_work_area() implementation.
* startup/bspgetworkarea.c: Removed.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c index 6dfec6ad34..c6ea668c1b 100644 --- a/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c @@ -46,6 +46,9 @@ SPR_RW(SPRG1) uint8_t LightIdx = 0; +extern int RAM_END; +unsigned int BSP_mem_size = (unsigned int)&RAM_END; + void BSP_Increment_Light(void){ uint8_t data; data = *GENERAL_REGISTER1; @@ -272,7 +275,6 @@ void Read_ep1a_config_registers( ppc_cpu_id_t myCpu ) { void bsp_start( void ) { - unsigned char *stack; uint32_t intrStackStart; uint32_t intrStackSize; ppc_cpu_id_t myCpu; @@ -309,20 +311,9 @@ ShowBATS(); #endif /* - * the initial stack has aready been set to this value in start.S - * so there is no need to set it in r1 again... It is just for info - * so that It can be printed without accessing R1. - */ - stack = ((unsigned char*) __rtems_end) + BSP_INIT_STACK_SIZE - - PPC_MINIMUM_STACK_FRAME_SIZE; - - /* tag the bottom (T. Straumann 6/36/2001 <strauman@slac.stanford.edu>) */ - *((uint32_t *)stack) = 0; - - /* * Initialize the interrupt related settings. */ - intrStackStart = (uint32_t) __rtems_end + BSP_INIT_STACK_SIZE; + intrStackStart = (uint32_t) __rtems_end; intrStackSize = rtems_configuration_get_interrupt_stack_size(); /* |