diff options
author | Oleksij Rempel <o.rempel@pengutronix.de> | 2018-11-27 10:19:32 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-12-13 08:09:13 +0100 |
commit | e2ea356a696502f717689a57293e79e18cddb4f2 (patch) | |
tree | 2aa2620dc1b5f214bed25d8fd8ce188f246af3a7 /arch/mips | |
parent | a9328c77852e533704421845fea4b0c85bdd544a (diff) | |
download | barebox-e2ea356a696502f717689a57293e79e18cddb4f2.tar.gz barebox-e2ea356a696502f717689a57293e79e18cddb4f2.tar.xz |
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 <o.rempel@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips')
-rw-r--r-- | arch/mips/boot/main_entry.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |