OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [c/] [src/] [lib/] [libbsp/] [h8300/] [h8sim/] [startup/] [__main.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  Copied from newlib 1.8.2
3
 *
4
 *  __main.c,v 1.1 2000/07/06 20:07:34 joel Exp
5
 */
6
 
7
void __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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.