summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/m68k/idp/startup/bspstart.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-03-21 15:37:18 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-03-21 15:37:18 +0000
commite2a2ec6016c9bb3f3146c701bbe950af212c097c (patch)
tree065452e3ecb58b60fb720dcd378e620089d4b407 /c/src/lib/libbsp/m68k/idp/startup/bspstart.c
parentFixed spacing to be consistent with other CPUs. (diff)
downloadrtems-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 'c/src/lib/libbsp/m68k/idp/startup/bspstart.c')
-rw-r--r--c/src/lib/libbsp/m68k/idp/startup/bspstart.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/c/src/lib/libbsp/m68k/idp/startup/bspstart.c b/c/src/lib/libbsp/m68k/idp/startup/bspstart.c
index df0d4e7f1a..2e226eb2b1 100644
--- a/c/src/lib/libbsp/m68k/idp/startup/bspstart.c
+++ b/c/src/lib/libbsp/m68k/idp/startup/bspstart.c
@@ -148,20 +148,11 @@ bsp_postdriver_hook(void)
rtems_fatal_error_occurred( error_code | 'I' << 8 | 'O' );
}
-int main(
- int argc,
- char **argv,
- char **environp
-)
+void bsp_start( void )
{
m68k_isr_entry *monitors_vector_table;
int index;
- if ((argc > 0) && argv && argv[0])
- rtems_progname = argv[0];
- else
- rtems_progname = "RTEMS";
-
duart_base = (unsigned char *)DUART_ADDR;
/*
@@ -248,9 +239,6 @@ int main(
rtems_libio_config(&BSP_Configuration, BSP_LIBIO_MAX_FDS);
/* led_putnum('e'); * for debugging purposes only */
- rtems_initialize_executive( &BSP_Configuration, &Cpu_table );/* does not return */
-
- /* Clock_exit is done as an atexit() function */
- return 0;
+ /* Clock_exit is done as an atexit() function */
}