[PATCH 04/10] blackfin: initialize malloc pool before start_barebox()
Sascha Hauer
s.hauer at pengutronix.de
Sat Mar 9 05:53:05 EST 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/blackfin/cpu-bf561/start.S | 4 ++--
arch/blackfin/lib/board.c | 6 ++----
2 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/arch/blackfin/cpu-bf561/start.S b/arch/blackfin/cpu-bf561/start.S
index 2664588..96da6b5 100644
--- a/arch/blackfin/cpu-bf561/start.S
+++ b/arch/blackfin/cpu-bf561/start.S
@@ -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:
diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c
index e335d6c..88ad618 100644
--- a/arch/blackfin/lib/board.c
+++ b/arch/blackfin/lib/board.c
@@ -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();
--
1.8.2.rc2
More information about the barebox
mailing list