summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/shared/main.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-15 15:20:05 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2006-11-15 15:20:05 +0000
commit66d973ffbe5dd4dd6984465aee98e2acda877b89 (patch)
treea1de128ee3ccd4b4a9c1b5aa04de9346d0aa1554 /c/src/lib/libbsp/shared/main.c
parent2006-11-15 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-66d973ffbe5dd4dd6984465aee98e2acda877b89.tar.bz2
2006-11-15 Joel Sherrill <joel@OARcorp.com>
* bootcard.c: Merge c_rtems_main() into boot_card(). This eliminated a file and simplified initialization. * main.c: Removed.
Diffstat (limited to 'c/src/lib/libbsp/shared/main.c')
-rw-r--r--c/src/lib/libbsp/shared/main.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/c/src/lib/libbsp/shared/main.c b/c/src/lib/libbsp/shared/main.c
deleted file mode 100644
index 8397902bd3..0000000000
--- a/c/src/lib/libbsp/shared/main.c
+++ /dev/null
@@ -1,35 +0,0 @@
-/*
- * A simple main which can be used on any embedded target.
- *
- * This style of initialization insures that the C++ global
- * constructors are executed after RTEMS is initialized.
- *
- * Thanks to Chris Johns <cjohns@plessey.com.au> for this idea.
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include <bsp.h>
-
-char *rtems_progname;
-
-extern rtems_interrupt_level bsp_isr_level;
-
-int c_rtems_main(int argc, char **argv)
-{
- if ((argc > 0) && argv && argv[0])
- rtems_progname = argv[0];
- else
- rtems_progname = "RTEMS";
-
- rtems_initialize_executive_late( bsp_isr_level );
-
- return 0;
-}