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 | |
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 'c/src/lib/libbsp/moxie')
-rw-r--r-- | c/src/lib/libbsp/moxie/moxiesim/Makefile.am | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/moxie/moxiesim/startup/__main.c | 21 |
2 files changed, 1 insertions, 22 deletions
diff --git a/c/src/lib/libbsp/moxie/moxiesim/Makefile.am b/c/src/lib/libbsp/moxie/moxiesim/Makefile.am index b109664e92..2d04f112bf 100644 --- a/c/src/lib/libbsp/moxie/moxiesim/Makefile.am +++ b/c/src/lib/libbsp/moxie/moxiesim/Makefile.am @@ -34,7 +34,7 @@ libbsp_a_SOURCES += ../../shared/bspclean.c ../../shared/bsplibc.c \ ../../shared/bsppredriverhook.c ../../shared/bsppretaskinghook.c \ ../../shared/bspgetworkarea.c ../../shared/bsppost.c \ ../../shared/bspstart.c ../../shared/bootcard.c ../../shared/sbrk.c \ - ../../shared/gnatinstallhandler.c startup/__main.c + ../../shared/gnatinstallhandler.c # clock libbsp_a_SOURCES += ../../shared/clock_driver_simidle.c # console 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) (); -} |