From 1a3db54805702c0efac91af825aebebac9b62439 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 19 Sep 2008 21:04:15 +0000 Subject: 2008-09-19 Joel Sherrill * Makefile.am, include/bsp.h, startup/bspstart.c: Use PowerPC level shared bsp_get_work_area() implementation. * startup/bspgetworkarea.c: Removed. --- c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c | 17 ++++------------- 1 file changed, 4 insertions(+), 13 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/ep1a/startup/bspstart.c') 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; @@ -308,21 +310,10 @@ ShowBATS(); L1_caches_enables(); #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 ) */ - *((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(); /* -- cgit v1.2.3