forked from Imagelibrary/rtems
* 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().
31 lines
489 B
C
31 lines
489 B
C
/*
|
|
* Description:
|
|
* This file exists solely to (try to) ensure RTEMS is initialized.
|
|
* It is not to be used in systems which want C++ support.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <bsp.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
/*
|
|
* RTEMS program name
|
|
* Probably not used by anyone, but it is nice to have it.
|
|
* Actually the UNIX version of CPU_INVOKE_DEBUGGER will probably
|
|
* need to use it
|
|
*/
|
|
|
|
char *rtems_progname;
|
|
|
|
int main(
|
|
int argc,
|
|
char **argv
|
|
)
|
|
{
|
|
boot_card();
|
|
|
|
return 0;
|
|
}
|