source: rtems/c/src/lib/libbsp/h8300/h8sim/startup/__main.c @ 501d312

4.104.114.84.95
Last change on this file since 501d312 was 501d312, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 6, 2000 at 8:07:34 PM

Added baseline for h8 simulator BSP to support the simulator in gdb 5.0

  • Property mode set to 100644
File size: 319 bytes
Line 
1/*
2 *  Copied from newlib 1.8.2
3 *
4 *  $Id$
5 */
6
7void __main ()
8{
9  static int initialized;
10  if (! initialized)
11    {
12      typedef void (*pfunc) ();
13      extern pfunc __ctors[];
14      extern pfunc __ctors_end[];
15      pfunc *p;
16
17      initialized = 1;
18      for (p = __ctors_end; p > __ctors; )
19        (*--p) ();
20
21    }
22}
Note: See TracBrowser for help on using the repository browser.