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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [sys/] [sysmec/] [crt1.c] - Diff between revs 207 and 520

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 520
void __main ()
void __main ()
{
{
  static int initialized;
  static int initialized;
  if (! initialized)
  if (! initialized)
    {
    {
      typedef void (*pfunc) ();
      typedef void (*pfunc) ();
      extern pfunc __ctors[];
      extern pfunc __ctors[];
      extern pfunc __ctors_end[];
      extern pfunc __ctors_end[];
      pfunc *p;
      pfunc *p;
 
 
      initialized = 1;
      initialized = 1;
      for (p = __ctors_end; p > __ctors; )
      for (p = __ctors_end; p > __ctors; )
        (*--p) ();
        (*--p) ();
 
 
    }
    }
}
}
 
 

powered by: WebSVN 2.1.0

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