From bcb9f8c3300c3acdebe1f5aebf489602f368ae8f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 18 Sep 2008 17:54:14 +0000 Subject: 2008-09-18 Joel Sherrill * Makefile.am, configure.ac, include/bsp.h, startup/bspstart.c: Use PowerPC level shared bsp_get_work_area() implementation. --- .../lib/libbsp/powerpc/mvme5500/startup/bspstart.c | 26 ++-------------------- 1 file changed, 2 insertions(+), 24 deletions(-) (limited to 'c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c') diff --git a/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c b/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c index 5cd38e6c61..24bb0b292d 100644 --- a/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c +++ b/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c @@ -124,11 +124,6 @@ unsigned char ConfVPD_buff[200]; static char cmdline_buf[CMDLINE_BUF_SIZE]; char *BSP_commandline_string = cmdline_buf; -/* - * system init stack - */ -#define INIT_STACK_SIZE 0x1000 - void BSP_panic(char *s) { printk("%s PANIC %s\n",_RTEMS_version, s); @@ -243,7 +238,6 @@ void bsp_start( void ) #endif uint32_t intrStackStart; uint32_t intrStackSize; - unsigned char *work_space_start; ppc_cpu_id_t myCpu; ppc_cpu_revision_t myCpuRevision; Triv121PgTbl pt=0; @@ -283,7 +277,7 @@ void bsp_start( void ) * so that it can be printed without accessing R1. */ stack = ((unsigned char*) __rtems_end) + - INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE; + BSP_INIT_STACK_SIZE - PPC_MINIMUM_STACK_FRAME_SIZE; /* tag the bottom (T. Straumann 6/36/2001 ) */ *((uint32_t *)stack) = 0; @@ -296,7 +290,7 @@ void bsp_start( void ) /* * Initialize the interrupt related settings. */ - intrStackStart = (uint32_t) __rtems_end + INIT_STACK_SIZE; + intrStackStart = (uint32_t) __rtems_end + BSP_INIT_STACK_SIZE; intrStackSize = rtems_configuration_get_interrupt_stack_size(); BSP_heap_start = intrStackStart + intrStackSize; @@ -369,22 +363,6 @@ void bsp_start( void ) bsp_clicks_per_usec = BSP_bus_frequency/(BSP_time_base_divisor * 1000); - printk( - "rtems_configuration_get_work_space_size() = %x\n", - rtems_configuration_get_work_space_size() - ); - - work_space_start = - (unsigned char *)BSP_mem_size - rtems_configuration_get_work_space_size(); - - if ( work_space_start <= ((unsigned char *)__rtems_end) + INIT_STACK_SIZE + - rtems_configuration_get_interrupt_stack_size()) { - printk( "bspstart: Not enough RAM!!!\n" ); - bsp_cleanup(); - } - - Configuration.work_space_start = work_space_start; - /* * Initalize RTEMS IRQ system */ -- cgit v1.2.3