mirror of
https://github.com/ipxe/ipxe
synced 2026-02-28 03:11:18 +03:00
Fix up init ordering.
Make init function table name fixed; it's a static variable anyway.
This commit is contained in:
@@ -37,14 +37,15 @@ struct init_fn {
|
|||||||
#define INIT_CONSOLE "01"
|
#define INIT_CONSOLE "01"
|
||||||
#define INIT_CPU "02"
|
#define INIT_CPU "02"
|
||||||
#define INIT_TIMERS "03"
|
#define INIT_TIMERS "03"
|
||||||
#define INIT_PCMCIA "04"
|
#define INIT_MEMSIZES "04"
|
||||||
#define INIT_MEMSIZES "05"
|
#define INIT_RELOCATE "05"
|
||||||
#define INIT_HEAP "06"
|
#define INIT_PCMCIA "05"
|
||||||
|
#define INIT_HEAP "07"
|
||||||
|
|
||||||
/* Macro for creating an initialisation function table entry */
|
/* Macro for creating an initialisation function table entry */
|
||||||
#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
|
#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
|
||||||
static struct init_fn init_ ## init_func ## _ ## exit_func \
|
static struct init_fn init_functions \
|
||||||
__attribute__ ((used,__section__(".init_fns." init_order))) = { \
|
__attribute__ ((used,__section__(".init_fns." init_order))) = { \
|
||||||
.init = init_func, \
|
.init = init_func, \
|
||||||
.reset = reset_func, \
|
.reset = reset_func, \
|
||||||
.exit = exit_func, \
|
.exit = exit_func, \
|
||||||
|
|||||||
Reference in New Issue
Block a user