URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 1010 |
Rev 1765 |
void __main ()
|
void __main ()
|
{
|
{
|
#ifndef __ELF__
|
#ifndef __ELF__
|
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) ();
|
|
|
}
|
}
|
#endif
|
#endif
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.