summaryrefslogtreecommitdiffstats
path: root/src/include/init.h
diff options
context:
space:
mode:
authorMichael Brown2005-04-27 13:25:21 +0200
committerMichael Brown2005-04-27 13:25:21 +0200
commit241f426a853fc4e7fef9dc0e61d92277a0ca5738 (patch)
tree714a7cc8beb1fa515af693fb70be842e009b1dff /src/include/init.h
parentAdded a generalised table infrastructure, so that we don't have to (diff)
downloadipxe-241f426a853fc4e7fef9dc0e61d92277a0ca5738.tar.gz
ipxe-241f426a853fc4e7fef9dc0e61d92277a0ca5738.tar.xz
ipxe-241f426a853fc4e7fef9dc0e61d92277a0ca5738.zip
Use new generic tables infrastructure
Diffstat (limited to 'src/include/init.h')
-rw-r--r--src/include/init.h22
1 files changed, 12 insertions, 10 deletions
diff --git a/src/include/init.h b/src/include/init.h
index e13075b32..ab2c44bf3 100644
--- a/src/include/init.h
+++ b/src/include/init.h
@@ -1,6 +1,8 @@
#ifndef INIT_H
#define INIT_H
+#include "tables.h"
+
/*
* In order to avoid having objects dragged in just because main()
* calls their initialisation function, we allow each object to
@@ -33,20 +35,20 @@ struct init_fn {
};
/* Use double digits to avoid problems with "10" < "9" on alphabetic sort */
-#define INIT_LIBRM "00"
-#define INIT_CONSOLE "01"
-#define INIT_CPU "02"
-#define INIT_TIMERS "03"
-#define INIT_PCIBIOS "04"
-#define INIT_MEMSIZES "05"
-#define INIT_RELOCATE "06"
-#define INIT_PCMCIA "07"
-#define INIT_HEAP "08"
+#define INIT_LIBRM 01
+#define INIT_CONSOLE 02
+#define INIT_CPU 03
+#define INIT_TIMERS 04
+#define INIT_PCIBIOS 05
+#define INIT_MEMSIZES 06
+#define INIT_RELOCATE 07
+#define INIT_PCMCIA 08
+#define INIT_HEAP 09
/* Macro for creating an initialisation function table entry */
#define INIT_FN( init_order, init_func, reset_func, exit_func ) \
static struct init_fn init_functions \
- __attribute__ ((used,__section__(".init_fns." init_order))) = { \
+ __attribute__ (( used, __table_section(init_fn,init_order) )) = { \
.init = init_func, \
.reset = reset_func, \
.exit = exit_func, \