[firmware] move board_init() to a gcc-type constructor
authorHarald Welte <laforge@gnumonks.org>
Thu, 24 Jun 2010 16:00:45 +0000 (18:00 +0200)
committerHarald Welte <laforge@gnumonks.org>
Thu, 24 Jun 2010 16:03:08 +0000 (18:03 +0200)
commitef81bf80e1c77de099f096c110ceb8a449c6c6ff
tree74bccb6878667b24bb7cfdd590ae88e9433ef3e2
parent93db95712e8f70a60b2e78dc53978bb51eccbafe
[firmware] move board_init() to a gcc-type constructor

Instead of calling board_init() from every main() function explicitly,
we simply mark it as a constructor and have it called automagically
src/target/firmware/apps/compal_dsp_dump/main.c
src/target/firmware/apps/hello_world/main.c
src/target/firmware/apps/l1test/main.c
src/target/firmware/apps/layer1/main.c
src/target/firmware/board/compal_e88/init.c
src/target/firmware/board/compal_e99/init.c
src/target/firmware/board/gta0x/init.c
src/target/firmware/include/board.h
src/target/firmware/include/ctors.h