URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 38 |
Rev 156 |
/* Normally we should loose foo and keep _start and _init.
|
/* Normally we should loose foo and keep _start and _init.
|
With -u foo, we should keep that as well. */
|
With -u foo, we should keep that as well. */
|
|
|
void _start() __asm__("_start");
|
void _start() __asm__("_start");
|
void _start()
|
void _start()
|
{
|
{
|
}
|
}
|
|
|
void __attribute__((section(".init")))
|
void __attribute__((section(".init")))
|
_init()
|
_init()
|
{
|
{
|
}
|
}
|
|
|
int foo() __asm__("foo");
|
int foo() __asm__("foo");
|
int foo()
|
int foo()
|
{
|
{
|
static int x = 1;
|
static int x = 1;
|
return x++;
|
return x++;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.