diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-07 12:52:31 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-14 08:41:15 +0100 |
commit | e91c960a5ea9e9a516b81dad0fa79ae1164d72a5 (patch) | |
tree | 78bbd9679ffbab2f7f624fa131f120da524b0b75 /arch/mips/boot/main_entry.c | |
parent | a38b236759978e45bceacd5f41b29a7197735971 (diff) | |
download | barebox-e91c960a5ea9e9a516b81dad0fa79ae1164d72a5.tar.gz barebox-e91c960a5ea9e9a516b81dad0fa79ae1164d72a5.tar.xz |
mips: initialize malloc pool before start_barebox()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/boot/main_entry.c')
-rw-r--r-- | arch/mips/boot/main_entry.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/boot/main_entry.c b/arch/mips/boot/main_entry.c index 0a33c4514f..015150bfb4 100644 --- a/arch/mips/boot/main_entry.c +++ b/arch/mips/boot/main_entry.c @@ -18,6 +18,8 @@ #include <common.h> #include <string.h> +#include <memory.h> +#include <asm-generic/memory_layout.h> #include <asm/sections.h> #include <asm/cpu-features.h> #include <asm/mipsregs.h> @@ -90,5 +92,8 @@ void main_entry(void) trap_init(); + mem_malloc_init((void *)MALLOC_BASE, + (void *)(MALLOC_BASE + MALLOC_SIZE - 1)); + start_barebox(); } |