summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-14 21:02:10 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-09-14 21:02:10 +0000
commitff32644ed51d74e411be22aa5b10c0526e03fa19 (patch)
tree88f61845da1a894ac0fd573e71a8f66c8ffa33d9 /c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c
parent2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-ff32644ed51d74e411be22aa5b10c0526e03fa19.tar.bz2
2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, configure.ac, startup/__main.c, startup/bspstart.c: Split out bsp_get_work_area() into its own file and user BSP Framework to perform more initialization. * startup/bspgetworkarea.c: New file.
Diffstat (limited to 'c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/h8300/h8sim/startup/bspstart.c42
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(