From e2ea356a696502f717689a57293e79e18cddb4f2 Mon Sep 17 00:00:00 2001 From: Oleksij Rempel Date: Tue, 27 Nov 2018 10:19:32 +0100 Subject: MIPS: put main_entry to __bare_init section 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 Signed-off-by: Sascha Hauer --- arch/mips/boot/main_entry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'arch/mips') 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 #include #include #include @@ -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); -- cgit v1.2.3