OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [a29k/] [portsw/] [startup/] [main.c] - Blame information for rev 594

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*  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: main.c,v 1.2 2001-09-27 11:59:42 chris Exp $
14
 */
15
 
16
#include <rtems.h>
17
#include <bsp.h>
18
 
19
#ifndef lint
20
static char _sccsid[] = "@(#)main.c 06/30/96     1.2\n";
21
#endif
22
 
23
int main(
24
  int   argc,
25
  char **argv,
26
  char **environp
27
)
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
  _exit(0);
37
  rtems_fatal_error_occurred( 0 );
38
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.