diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-16 10:57:42 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2014-10-19 17:00:56 -0500 |
commit | 94a54ae1877646e126844f879000dc7dc5e5f80f (patch) | |
tree | a474ece447476776fb72a9621fac05eab56ea4e2 /c/src/lib/libbsp/moxie/moxiesim/startup/__main.c | |
parent | moxie/moxiesim: Remove unused method MOXIEBD_Install_IRQ (diff) | |
download | rtems-94a54ae1877646e126844f879000dc7dc5e5f80f.tar.bz2 |
moxie/moxiesim: Remove __main()
Moxie has .init section and that is what handles the constructors.
Diffstat (limited to '')
-rw-r--r-- | c/src/lib/libbsp/moxie/moxiesim/startup/__main.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/c/src/lib/libbsp/moxie/moxiesim/startup/__main.c b/c/src/lib/libbsp/moxie/moxiesim/startup/__main.c deleted file mode 100644 index ffe8b55961..0000000000 --- a/c/src/lib/libbsp/moxie/moxiesim/startup/__main.c +++ /dev/null @@ -1,21 +0,0 @@ -/* - * COPYRIGHT (c) 2011 Anthony Green <green@moxielogic.com> - * - */ - -typedef void (*pfunc) (void); -extern pfunc __ctors[]; -extern pfunc __ctors_end[]; - -void __main (void) -{ - static int initialized; - pfunc *p; - - if (initialized) - return; - - initialized = 1; - for (p = __ctors_end; p > __ctors; ) - (*--p) (); -} |