source: rtems/bsps/nios2/nios2_iss/start/main.c @ e0dd8a5a

5
Last change on this file since e0dd8a5a was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 909 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.org/license/LICENSE.
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.