Pārlūkot izejas kodu

Fix up init ordering.

Make init function table name fixed; it's a static variable anyway.
tags/v0.9.3
Michael Brown 19 gadus atpakaļ
vecāks
revīzija
d189b84536
1 mainītis faili ar 6 papildinājumiem un 5 dzēšanām
  1. 6
    5
      src/include/init.h

+ 6
- 5
src/include/init.h Parādīt failu

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

Notiek ielāde…
Atcelt
Saglabāt