blackfin: initialize malloc pool before start_barebox()
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
a4c2d0259d
commit
1d9547773c
|
@ -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:
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue