source: rtems/c/src/lib/libbsp/shared/main.c @ 08b5f55

4.104.114.84.95
Last change on this file since 08b5f55 was c8d9183, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 2, 1999 at 6:57:11 PM

Patch from Ralf Corsepius <corsepiu@…> that splits
boot_card() and main() into separate files to ease configuration
of other packages. This was a big step in the way to build TCL,
ncurses, and zlib for RTEMS.

  • Property mode set to 100644
File size: 858 bytes
Line 
1/*
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-1998.
10 *  On-Line Applications Research Corporation (OAR).
11 *  Copyright assigned to U.S. Government, 1994.
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.OARcorp.com/rtems/license.html.
16 *
17 *  $Id$
18 */
19
20#include <bsp.h>
21
22char *rtems_progname;
23
24rtems_interrupt_level bsp_isr_level;
25
26int main(int argc, char **argv)
27{
28  if ((argc > 0) && argv && argv[0])
29    rtems_progname = argv[0];
30  else
31    rtems_progname = "RTEMS";
32
33  rtems_initialize_executive_late( bsp_isr_level );
34
35  return 0;
36}
37
Note: See TracBrowser for help on using the repository browser.