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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [shared/] [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
/*
2
 *  A simple main which can be used on any embedded target.
3
 *
4
 *  This style of initialization insures that the C++ global
5
 *  constructors are executed after RTEMS is initialized.
6
 *
7
 *  Thanks to Chris Johns <cjohns@plessey.com.au> for this idea.
8
 *
9
 *  COPYRIGHT (c) 1989-1999.
10
 *  On-Line Applications Research Corporation (OAR).
11
 *
12
 *  The license and distribution terms for this file may be
13
 *  found in the file LICENSE in this distribution or at
14
 *  http://www.OARcorp.com/rtems/license.html.
15
 *
16
 *  $Id: main.c,v 1.2 2001-09-27 12:01:12 chris Exp $
17
 */
18
 
19
#include <bsp.h>
20
 
21
char *rtems_progname;
22
 
23
rtems_interrupt_level bsp_isr_level;
24
 
25
int main(int argc, char **argv)
26
{
27
  if ((argc > 0) && argv && argv[0])
28
    rtems_progname = argv[0];
29
  else
30
    rtems_progname = "RTEMS";
31
 
32
  rtems_initialize_executive_late( bsp_isr_level );
33
 
34
  return 0;
35
}
36
 

powered by: WebSVN 2.1.0

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