diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-09 20:57:11 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-08-09 20:57:11 +0000 |
commit | 783669fcb3d0196034df104ca172bbb215a60237 (patch) | |
tree | bbfbed63163fe3657cfbce2a31df4a2816436d02 /c/src/lib/libbsp/nios2/nios2_iss/startup/main.c | |
parent | * libnetworking/rtems/rtems_mii_ioctl_kern.c: (diff) | |
download | rtems-783669fcb3d0196034df104ca172bbb215a60237.tar.bz2 |
2006-08-09 Kolja Waschk <waschk@telos.de>
* ChangeLog, Makefile.am, README, acinclude.m4, configure.ac,
nios2_iss/ChangeLog, nios2_iss/Makefile.am, nios2_iss/bsp_specs,
nios2_iss/configure.ac, nios2_iss/nios2_iss.ptf,
nios2_iss/nios2_iss.sh, nios2_iss/times, nios2_iss/console/console.c,
nios2_iss/include/bsp.h, nios2_iss/include/bspopts.h.in,
nios2_iss/include/coverhd.h, nios2_iss/include/tm27.h,
nios2_iss/shmsupp/addrconv.c, nios2_iss/shmsupp/getcfg.c,
nios2_iss/shmsupp/lock.c, nios2_iss/shmsupp/mpisr.c,
nios2_iss/start/crtnn.s, nios2_iss/start/start.S,
nios2_iss/startup/bspclean.c, nios2_iss/startup/bspstart.c,
nios2_iss/startup/linkcmds, nios2_iss/startup/main.c,
nios2_iss/startup/setvec.c, nios2_iss/timer/timer.c: New files.
Diffstat (limited to 'c/src/lib/libbsp/nios2/nios2_iss/startup/main.c')
-rw-r--r-- | c/src/lib/libbsp/nios2/nios2_iss/startup/main.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/nios2/nios2_iss/startup/main.c b/c/src/lib/libbsp/nios2/nios2_iss/startup/main.c new file mode 100644 index 0000000000..4e28f28fe2 --- /dev/null +++ b/c/src/lib/libbsp/nios2/nios2_iss/startup/main.c @@ -0,0 +1,39 @@ +/* main() + * + * This is the entry point for the application. It calls + * the bsp_start routine to the actual dirty work. + * + * COPYRIGHT (c) 2005-2006 Kolja Waschk rtemsdev/ixo.de + * Derived from no_cpu/no_bsp/startup/main.c 1.9, + * COPYRIGHT (c) 1989-1999. + * On-Line Applications Research Corporation (OAR). + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + * + * $Id$ + */ + +#include <rtems.h> +#include <bsp.h> + +int main( + int argc, + char **argv, + char **environp +) +{ + extern void bsp_start( int, char**, char ** ); + + bsp_start( argc, argv, environp ); + + /* + * May be able to return to the "crt/start.s" code but also + * may not be able to. Do something here which is board dependent. + */ + + rtems_fatal_error_occurred( 0 ); + + return 0; /* just to satisfy the native compiler */ +} |