diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-03-21 15:37:18 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-03-21 15:37:18 +0000 |
commit | e2a2ec6016c9bb3f3146c701bbe950af212c097c (patch) | |
tree | 065452e3ecb58b60fb720dcd378e620089d4b407 /c/src/lib/libbsp/mips | |
parent | Fixed spacing to be consistent with other CPUs. (diff) | |
download | rtems-e2a2ec6016c9bb3f3146c701bbe950af212c097c.tar.bz2 |
Switch to using a shared main() for all of the embedded BSPs
based on the GNU tools. This usually involved correcting the
type of bsp_start(), bsp_cleanup(), adjusting the start code to
call the right start routine (the shared boot_card()), and then
removing code from bsp_start() which was performed in the new
boot_card()/main() path.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/mips/p4000/include/bsp.h | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/mips/p4000/startup/bspclean.c | 1 | ||||
-rw-r--r-- | c/src/lib/libbsp/mips/p4000/startup/bspstart.c | 20 | ||||
-rw-r--r-- | c/src/lib/libbsp/mips64orion/p4000/include/bsp.h | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/mips64orion/p4000/startup/bspclean.c | 1 | ||||
-rw-r--r-- | c/src/lib/libbsp/mips64orion/p4000/startup/bspstart.c | 20 |
6 files changed, 4 insertions, 54 deletions
diff --git a/c/src/lib/libbsp/mips/p4000/include/bsp.h b/c/src/lib/libbsp/mips/p4000/include/bsp.h index 1c8c3aa388..d6dcc834f6 100644 --- a/c/src/lib/libbsp/mips/p4000/include/bsp.h +++ b/c/src/lib/libbsp/mips/p4000/include/bsp.h @@ -110,14 +110,6 @@ extern rtems_configuration_table BSP_Configuration; /* miscellaneous stuff assumed to exist */ -int bsp_start( - int argc, - char **argv, - char **environp -); - -void bsp_cleanup( void ); - mips_isr_entry set_vector( /* returns old vector */ rtems_isr_entry handler, /* isr routine */ rtems_vector_number vector, /* vector number */ diff --git a/c/src/lib/libbsp/mips/p4000/startup/bspclean.c b/c/src/lib/libbsp/mips/p4000/startup/bspclean.c index bfe5176063..2aee25a72b 100644 --- a/c/src/lib/libbsp/mips/p4000/startup/bspclean.c +++ b/c/src/lib/libbsp/mips/p4000/startup/bspclean.c @@ -32,4 +32,5 @@ void bsp_cleanup( void ) { + idtsim__exit(); } diff --git a/c/src/lib/libbsp/mips/p4000/startup/bspstart.c b/c/src/lib/libbsp/mips/p4000/startup/bspstart.c index 149009e5e1..506bfcbc28 100644 --- a/c/src/lib/libbsp/mips/p4000/startup/bspstart.c +++ b/c/src/lib/libbsp/mips/p4000/startup/bspstart.c @@ -161,17 +161,8 @@ bsp_postdriver_hook(void) extern int end; /* defined by linker */ -int bsp_start( - int argc, - char **argv, - char **environp -) +void bsp_start( void ) { - if ((argc > 0) && argv && argv[0]) - rtems_progname = argv[0]; - else - rtems_progname = "RTEMS"; - /* * Allocate the memory for the RTEMS Work Space. This can come from * a variety of places: hard coded address, malloc'ed from outside @@ -256,13 +247,4 @@ int bsp_start( * Don't forget the other CPU Table entries. */ - /* - * Start RTEMS - */ - - rtems_initialize_executive( &BSP_Configuration, &Cpu_table ); - - bsp_cleanup(); - - return 0; } diff --git a/c/src/lib/libbsp/mips64orion/p4000/include/bsp.h b/c/src/lib/libbsp/mips64orion/p4000/include/bsp.h index 1c8c3aa388..d6dcc834f6 100644 --- a/c/src/lib/libbsp/mips64orion/p4000/include/bsp.h +++ b/c/src/lib/libbsp/mips64orion/p4000/include/bsp.h @@ -110,14 +110,6 @@ extern rtems_configuration_table BSP_Configuration; /* miscellaneous stuff assumed to exist */ -int bsp_start( - int argc, - char **argv, - char **environp -); - -void bsp_cleanup( void ); - mips_isr_entry set_vector( /* returns old vector */ rtems_isr_entry handler, /* isr routine */ rtems_vector_number vector, /* vector number */ diff --git a/c/src/lib/libbsp/mips64orion/p4000/startup/bspclean.c b/c/src/lib/libbsp/mips64orion/p4000/startup/bspclean.c index bfe5176063..2aee25a72b 100644 --- a/c/src/lib/libbsp/mips64orion/p4000/startup/bspclean.c +++ b/c/src/lib/libbsp/mips64orion/p4000/startup/bspclean.c @@ -32,4 +32,5 @@ void bsp_cleanup( void ) { + idtsim__exit(); } diff --git a/c/src/lib/libbsp/mips64orion/p4000/startup/bspstart.c b/c/src/lib/libbsp/mips64orion/p4000/startup/bspstart.c index 149009e5e1..506bfcbc28 100644 --- a/c/src/lib/libbsp/mips64orion/p4000/startup/bspstart.c +++ b/c/src/lib/libbsp/mips64orion/p4000/startup/bspstart.c @@ -161,17 +161,8 @@ bsp_postdriver_hook(void) extern int end; /* defined by linker */ -int bsp_start( - int argc, - char **argv, - char **environp -) +void bsp_start( void ) { - if ((argc > 0) && argv && argv[0]) - rtems_progname = argv[0]; - else - rtems_progname = "RTEMS"; - /* * Allocate the memory for the RTEMS Work Space. This can come from * a variety of places: hard coded address, malloc'ed from outside @@ -256,13 +247,4 @@ int bsp_start( * Don't forget the other CPU Table entries. */ - /* - * Start RTEMS - */ - - rtems_initialize_executive( &BSP_Configuration, &Cpu_table ); - - bsp_cleanup(); - - return 0; } |