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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [no_cpu/] [no_bsp/] [startup/] [main.c] - Blame information for rev 773

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 12:00:27 chris Exp $
14
 */
15
 
16
#include <rtems.h>
17
#include <bsp.h>
18
 
19
int 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
}

powered by: WebSVN 2.1.0

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