9
0
Fork 0

blackfin: initialize malloc pool before start_barebox()

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-03-07 12:57:26 +01:00
parent a4c2d0259d
commit 1d9547773c
2 changed files with 4 additions and 6 deletions

View File

@ -329,8 +329,8 @@ _clear_bss_skip:
[p0] = r0;
#endif
p0.l = _start_barebox;
p0.h = _start_barebox;
p0.l = _blackfin_start_barebox;
p0.h = _blackfin_start_barebox;
jump (p0);
reset_start:

View File

@ -31,15 +31,13 @@
#include <asm/cpu.h>
#include <asm-generic/memory_layout.h>
int blackfin_mem_malloc_init(void)
void __noreturn blackfin_start_barebox(void)
{
mem_malloc_init((void *)(MALLOC_BASE),
(void *)(MALLOC_BASE + MALLOC_SIZE - 1));
return 0;
start_barebox();
}
core_initcall(blackfin_mem_malloc_init);
void arch_shutdown(void)
{
icache_disable();