diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-18 18:01:48 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2008-09-18 18:01:48 +0000 |
commit | 76ba5f222ad66dda7f811a65216e8d3a4cd073e6 (patch) | |
tree | 2a7c722058313ff7d4a4d3ec67700e215909e5b0 /c/src/lib/libbsp/i386/i386ex/startup/bspstart.c | |
parent | 2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-76ba5f222ad66dda7f811a65216e8d3a4cd073e6.tar.bz2 |
2008-09-18 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, startup/bspstart.c, startup/linkcmds: Use
top level shared bsp_get_work_area() implementation.
Diffstat (limited to 'c/src/lib/libbsp/i386/i386ex/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/i386/i386ex/startup/bspstart.c | 60 |
1 files changed, 1 insertions, 59 deletions
diff --git a/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c b/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c index b039e2cd6e..41b2ffbd7e 100644 --- a/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c +++ b/c/src/lib/libbsp/i386/i386ex/startup/bspstart.c @@ -20,78 +20,20 @@ * $Id$ */ -void bsp_clean_up(void); - #include <bsp.h> #include <bsp/irq.h> -/* - * Tells us where to put the workspace in case remote debugger is present. - */ - -extern uint32_t rdb_start; - -/* - * Use the shared implementations of the following routines - */ - -void bsp_libc_init( void *, uint32_t, 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 heap_bottom; - uint32_t heap_start; - uint32_t heap_size; - - heap_start = (uint32_t) &heap_bottom; - if (heap_start & (CPU_ALIGNMENT-1)) - heap_start = (heap_start + CPU_ALIGNMENT) & ~(CPU_ALIGNMENT-1); - - heap_size = Configuration.work_space_start -(void *) heap_start ; - heap_size &= 0xfffffff0; /* keep it as a multiple of 16 bytes */ - - bsp_libc_init((void *) heap_start, heap_size, 0); -} +extern void rtems_irq_mngt_init(); /* * bsp_start * * This routine does the bulk of the system initialization. */ - void bsp_start( void ) { - void rtems_irq_mngt_init(); - - Configuration.work_space_start = (void *) - RAM_END - rtems_configuration_get_work_space_size(); -#ifdef DEBUG - printk("workspace size = 0x%x\nstart = 0x%x, RAM_END = 0x%x\n",rtems_configuration_get_work_space_size(), Configuration.work_space_start, RAM_END ); -#endif - - /* - * Account for the console's resources - */ - /* * Init rtems_interrupt_management */ rtems_irq_mngt_init(); } -void bsp_clean_up(void) { - printk("bsp_cleanup called\n"); -} |