diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-24 20:52:56 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-07-24 20:52:56 +0000 |
commit | f10d37f018ca0e9359cdcf54c6d5ac5bd90e2905 (patch) | |
tree | d1cd055657d62ca30da46291e066381233a4b1ab /c/src/lib/libbsp/unix/posix/startup/main.c | |
parent | 2007-07-24 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-f10d37f018ca0e9359cdcf54c6d5ac5bd90e2905.tar.bz2 |
2007-07-24 Joel Sherrill <joel.sherrill@OARcorp.com>
* Makefile.am, startup/main.c: Now can link with C compiler and not
require C++ compiler to link. The file rtems-ctor.cc is not being
built but if there is a need for C++ code to run on this BSP, then it
will have to be addressed. The simplest solution which might work is
to check the RTEMS system state before calling bsp_start() in main().
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/unix/posix/startup/main.c | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/c/src/lib/libbsp/unix/posix/startup/main.c b/c/src/lib/libbsp/unix/posix/startup/main.c index 520cd36b04..c30d65e2ca 100644 --- a/c/src/lib/libbsp/unix/posix/startup/main.c +++ b/c/src/lib/libbsp/unix/posix/startup/main.c @@ -24,31 +24,7 @@ int main( char **argv ) { - rtems_argc = argc; - rtems_argv = argv; - - bsp_start(); - - if ((argc > 0) && argv && argv[0]) - rtems_progname = argv[0]; - else - rtems_progname = "RTEMS"; - - /* - * Start multitasking - */ - - rtems_initialize_executive_late( bsp_isr_level ); - - /* - * Returns when multitasking is stopped - * This allows our destructors to get run normally - */ - - fflush( stdout ); - fflush( stderr ); - - bsp_cleanup(); + boot_card(); return 0; } |