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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [h8300hms/] [crt1.c] - Blame information for rev 829

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
void __main ()
2
{
3
#ifndef __ELF__
4
  static int initialized;
5
  if (! initialized)
6
    {
7
      typedef void (*pfunc) ();
8
      extern pfunc __ctors[];
9
      extern pfunc __ctors_end[];
10
      pfunc *p;
11
 
12
      initialized = 1;
13
      for (p = __ctors_end; p > __ctors; )
14
        (*--p) ();
15
 
16
    }
17
#endif
18
}

powered by: WebSVN 2.1.0

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