forked from Imagelibrary/rtems
a BSP (c4xsim) supporting the simulator included with gdb. This port was done by Joel Sherrill and Jennifer Averett of OAR Corporation. Also included with this port is a space/time optimization to eliminate FP context switch management on CPUs without hardware or software FP. An issue with this port was that sizeof(unsigned32) = sizeof(unsigned8) on this CPU. This required addressing alignment checks and assumptions as well as fixing code that assumed sizeof(unsigned32) == 4.
37 lines
816 B
C
37 lines
816 B
C
/*
|
|
* 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.OARcorp.com/rtems/license.html.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <bsp.h>
|
|
|
|
char *rtems_progname;
|
|
|
|
extern rtems_interrupt_level bsp_isr_level;
|
|
|
|
int 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;
|
|
}
|
|
|