source: rtems/c/src/lib/libbsp/or32/orp/startup/main.c @ a24d946

4.104.114.84.95
Last change on this file since a24d946 was a24d946, checked in by Joel Sherrill <joel.sherrill@…>, on Aug 6, 2002 at 1:57:03 PM

2002-08-06 Chris Ziomkowski <chris@…>

  • .cvsignore, Makefile.am, README, bsp_specs, configure.ac, times, clock/.cvsignore, clock/Makefile.am, clock/clockdrv.c, console/.cvsignore, console/Makefile.am, console/console.c, console/console.h, include/.cvsignore, include/Makefile.am, include/bsp.h, start/.cvsignore, start/Makefile.am, start/start.S, startup/.cvsignore, startup/bspclean.c, startup/bspstart.c, startup/linkcmds, startup/main.c, startup/setvec.c, timer/.cvsignore, timer/Makefile.am, timer/timer.c, timer/timerisr.c, wrapup/.cvsignore, wrapup/Makefile.am, ChangeLog?: New files added as part of merge from OpenCores? repository.
  • Property mode set to 100644
File size: 818 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) 1989-1999.
7 *  On-Line Applications Research Corporation (OAR).
8 *
9 *  The license and distribution terms for this file may be
10 *  found in the file LICENSE in this distribution or at
11 *  http://www.OARcorp.com/rtems/license.html.
12 *
13 *  $Id$
14 */
15
16#include <rtems.h>
17#include <bsp.h>
18
19int main(
20  int   argc,
21  char **argv,
22  char **environp
23)
24{
25  extern void bsp_start( int, char**, char ** );
26
27  bsp_start( argc, argv, environp );
28
29  /*
30   *  May be able to return to the "crt/start.s" code but also
31   *  may not be able to.  Do something here which is board dependent.
32   */
33
34  rtems_fatal_error_occurred( 0 );
35
36  return 0; /* just to satisfy the native compiler */
37}
Note: See TracBrowser for help on using the repository browser.