From b8c98837559029b807fc80b54d170b2c3184df1f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 13 Jan 2000 20:45:07 +0000 Subject: All m68k BSPs now build with new ELF style linkcmds. --- c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c | 35 ++---------------------- 1 file changed, 3 insertions(+), 32 deletions(-) (limited to 'c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c') diff --git a/c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c b/c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c index 83d9c2e754..bd66195bc8 100644 --- a/c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/mvme162/startup/bspstart.c @@ -47,36 +47,7 @@ char *rtems_progname; void bsp_postdriver_hook(void); void bsp_libc_init( void *, unsigned32, int ); - -/* - * Function: bsp_pretasking_hook - * Created: 95/03/10 - * - * Description: - * BSP pretasking hook. Called just before drivers are initialized. - * Used to setup libc and install any BSP extensions. - * - * NOTES: - * Must not use libc (to do io) from here, since drivers are - * not yet initialized. - * - */ - -void bsp_pretasking_hook(void) -{ - extern int end; - rtems_unsigned32 heap_start; - - heap_start = (rtems_unsigned32) &end; - if (heap_start & (CPU_ALIGNMENT-1)) - heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); - - bsp_libc_init((void *) heap_start, 64 * 1024, 0); - -#ifdef RTEMS_DEBUG - rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); -#endif -} +void bsp_pretasking_hook(void); /* m68k version */ /* * bsp_start @@ -88,6 +59,7 @@ void bsp_start( void ) { m68k_isr_entry *monitors_vector_table; int index; + extern void *_WorkspaceBase; /* * 162Bug Vectors are at 0xFFE00000 @@ -132,6 +104,5 @@ void bsp_start( void ) Cpu_table.interrupt_vector_table = (m68k_isr_entry *) &M68Kvec; Cpu_table.interrupt_stack_size = 4096; - BSP_Configuration.work_space_start = (void *) - (RAM_END - BSP_Configuration.work_space_size); + BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; } -- cgit v1.2.3