mirror of
https://github.com/xcat2/xNBA.git
synced 2025-01-18 21:43:14 +00:00
Fix up init ordering.
Make init function table name fixed; it's a static variable anyway.
This commit is contained in:
parent
3714946709
commit
d189b84536
@ -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, \
|
||||
|
Loading…
x
Reference in New Issue
Block a user