summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-18 17:54:14 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-18 17:54:14 +0000
commitbcb9f8c3300c3acdebe1f5aebf489602f368ae8f (patch)
tree34f859571838d8ea961a6aa9f4bf46ea3ac4e969 /c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c
parent2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-bcb9f8c3300c3acdebe1f5aebf489602f368ae8f.tar.bz2
2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, include/bsp.h, startup/bspstart.c: Use PowerPC level shared bsp_get_work_area() implementation.
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/powerpc/mvme5500/startup/bspstart.c26
1 files changed, 2 insertions, 24 deletions
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 <strauman@slac.stanford.edu>) */
*((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
*/