summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/asm-generic/barebox.lds.h3
-rw-r--r--include/init.h9
2 files changed, 7 insertions, 5 deletions
diff --git a/include/asm-generic/barebox.lds.h b/include/asm-generic/barebox.lds.h
index 99ccc5e..1d3f4f7 100644
--- a/include/asm-generic/barebox.lds.h
+++ b/include/asm-generic/barebox.lds.h
@@ -15,7 +15,8 @@
KEEP(*(.initcall.4)) \
KEEP(*(.initcall.5)) \
KEEP(*(.initcall.6)) \
- KEEP(*(.initcall.7))
+ KEEP(*(.initcall.7)) \
+ KEEP(*(.initcall.8))
#define BAREBOX_CMDS KEEP(*(SORT_BY_NAME(.barebox_cmd*)))
diff --git a/include/init.h b/include/init.h
index bc70874..8692b68 100644
--- a/include/init.h
+++ b/include/init.h
@@ -25,10 +25,11 @@ typedef int (*initcall_t)(void);
#define core_initcall(fn) __define_initcall("1",fn,1)
#define postcore_initcall(fn) __define_initcall("2",fn,2)
#define console_initcall(fn) __define_initcall("3",fn,3)
-#define coredevice_initcall(fn) __define_initcall("4",fn,4)
-#define fs_initcall(fn) __define_initcall("5",fn,5)
-#define device_initcall(fn) __define_initcall("6",fn,6)
-#define late_initcall(fn) __define_initcall("7",fn,7)
+#define postconsole_initcall(fn) __define_initcall("4",fn,4)
+#define coredevice_initcall(fn) __define_initcall("5",fn,5)
+#define fs_initcall(fn) __define_initcall("6",fn,6)
+#define device_initcall(fn) __define_initcall("7",fn,7)
+#define late_initcall(fn) __define_initcall("8",fn,8)
/* section for code used very early when
* - we're not running from where we linked at