To make disassambly easier to read.
With this patch main_entry will be at the start of the text section
and not in the middle.

Signed-off-by: Oleksij Rempel <o.rem...@pengutronix.de>
---
 arch/mips/boot/main_entry.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c
index e51e1b2f96..e33ae64e72 100644
--- a/arch/mips/boot/main_entry.c
+++ b/arch/mips/boot/main_entry.c
@@ -16,6 +16,7 @@
  *
  */
 
+#include <init.h>
 #include <common.h>
 #include <string.h>
 #include <memory.h>
@@ -79,7 +80,7 @@ extern u32 glob_fdt_size;
  *
  * @note The C environment isn't initialized yet
  */
-void main_entry(void *fdt, u32 fdt_size)
+void __bare_init main_entry(void *fdt, u32 fdt_size)
 {
        /* clear the BSS first */
        memset(__bss_start, 0x00, __bss_stop - __bss_start);
-- 
2.19.1


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to