diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-01-13 20:45:07 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2000-01-13 20:45:07 +0000 |
commit | b8c98837559029b807fc80b54d170b2c3184df1f (patch) | |
tree | 8ebc7a418213c792f6f6bc0c46daff05d5b56c12 /c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c | |
parent | POSIX message queues now include complete functionality including (diff) | |
download | rtems-b8c98837559029b807fc80b54d170b2c3184df1f.tar.bz2 |
All m68k BSPs now build with new ELF style linkcmds.
Diffstat (limited to 'c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c | 47 |
1 files changed, 3 insertions, 44 deletions
diff --git a/c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c b/c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c index fdc19d1c58..180f3db116 100644 --- a/c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c +++ b/c/src/lib/libbsp/m68k/efi68k/startup/bspstart.c @@ -43,45 +43,9 @@ extern void breakpoint(void); void bsp_postdriver_hook(void); void bsp_libc_init( void *, unsigned32, int ); +void bsp_pretasking_hook(void); /* m68k version */ /* - * 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) BSP_Configuration.work_space_start + - (rtems_unsigned32) BSP_Configuration.work_space_size; - if (heap_start & (CPU_ALIGNMENT-1)) - heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); - - if (heap_start > (rtems_unsigned32) RAM_END) { - /* rtems_fatal_error_occurred can not be used before initalization */ - RAW_PUTS("\n\rRTEMS: Out of memory.\n\r"); - RAW_PUTS("RTEMS: Check RAM_END and the size of the work space.\n\r"); - } - - bsp_libc_init((void *) heap_start, (RAM_END - heap_start), 0); - -#ifdef RTEMS_DEBUG - rtems_debug_enable( RTEMS_DEBUG_ALL_MASK ); -#endif -} - -/* * bsp_start * * This routine does the bulk of the system initialization. @@ -90,7 +54,7 @@ void bsp_pretasking_hook(void) void bsp_start( void ) { void *vbr; - extern unsigned int _WorkspaceBase; + extern void *_WorkspaceBase; /* set_debug_traps(); */ /* breakpoint(); */ @@ -105,12 +69,7 @@ void bsp_start( void ) m68k_get_vbr( vbr ); Cpu_table.interrupt_vector_table = vbr; - BSP_Configuration.work_space_start = (void *) - (((unsigned int)_WorkspaceBase + STACK_SIZE + 0x100) & 0xffffff00); - -#if 0 - (((unsigned int)_end + STACK_SIZE + 0x100) & 0xffffff00); -#endif + BSP_Configuration.work_space_start = (void *) &_WorkspaceBase; /* Clock_exit is done as an atexit() function */ } |