david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Fix up init ordering.

Make init function table name fixed; it's a static variable anyway.
This commit is contained in:
Michael Brown 2005-04-10 18:20:38 +00:00
parent 3714946709
commit d189b84536
1 changed files with 6 additions and 5 deletions

View File

@ -37,14 +37,15 @@ struct init_fn {
#define INIT_CONSOLE "01"
#define INIT_CPU "02"
#define INIT_TIMERS "03"
#define INIT_PCMCIA "04"
#define INIT_MEMSIZES "05"
#define INIT_HEAP "06"
#define INIT_MEMSIZES "04"
#define INIT_RELOCATE "05"
#define INIT_PCMCIA "05"
#define INIT_HEAP "07"
/* Macro for creating an initialisation function table entry */
#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
static struct init_fn init_ ## init_func ## _ ## exit_func \
__attribute__ ((used,__section__(".init_fns." init_order))) = { \
static struct init_fn init_functions \
__attribute__ ((used,__section__(".init_fns." init_order))) = { \
.init = init_func, \
.reset = reset_func, \
.exit = exit_func, \