source: rtems/c/src/lib/libbsp/nios2/nios2_iss/startup/main.c @ 783669fc

4.104.114.84.95
Last change on this file since 783669fc was 783669fc, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 9, 2006 at 8:57:11 PM

2006-08-09 Kolja Waschk <waschk@…>

  • 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.
  • Property mode set to 100644
File size: 921 bytes
Line 
1/*  main()
2 *
3 *  This is the entry point for the application.  It calls
4 *  the bsp_start routine to the actual dirty work.
5 *
6 *  COPYRIGHT (c) 2005-2006 Kolja Waschk rtemsdev/ixo.de
7 *  Derived from no_cpu/no_bsp/startup/main.c 1.9,
8 *  COPYRIGHT (c) 1989-1999.
9 *  On-Line Applications Research Corporation (OAR).
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 *
15 *  $Id$
16 */
17
18#include <rtems.h>
19#include <bsp.h>
20
21int main(
22  int   argc,
23  char **argv,
24  char **environp
25)
26{
27  extern void bsp_start( int, char**, char ** );
28
29  bsp_start( argc, argv, environp );
30
31  /*
32   *  May be able to return to the "crt/start.s" code but also
33   *  may not be able to.  Do something here which is board dependent.
34   */
35
36  rtems_fatal_error_occurred( 0 );
37
38  return 0; /* just to satisfy the native compiler */
39}
Note: See TracBrowser for help on using the repository browser.