diff options
Diffstat (limited to 'c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c')
-rw-r--r-- | c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c b/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c index 285a0de8f5..2132e4a9fb 100644 --- a/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c +++ b/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c @@ -21,40 +21,6 @@ #include <rtems/libcsupport.h> /* - * 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) -{ - void *heapStart; - unsigned long heapSize; - extern int WorkspaceBase; - - heapStart = (void *) - ((unsigned long)&WorkspaceBase + rtems_configuration_get_work_space_size()); - if ( (unsigned long) heapStart > (256 * 1024) ) - rtems_fatal_error_occurred (('H'<<24) | ('E'<<16) | ('A'<<8) | 'P'); - heapSize = (256 * 1024) - (unsigned long)(heapStart); - bsp_libc_init(heapStart, heapSize, 0); -} - -/* * bsp_start * * This routine does the bulk of the system initialization. @@ -62,14 +28,6 @@ void bsp_pretasking_hook(void) void bsp_start( void ) { - extern int WorkspaceBase; - -/* - if ( rtems_configuration_get_work_space_size() >(512*1024) ) - _sys_exit( 1 ); -*/ - - Configuration.work_space_start = (void *) &WorkspaceBase; } void H8BD_Install_IRQ( |