[PATCH 23/34] ARM start-pbl: make board_init_lowlevel_return static
Sascha Hauer
s.hauer at pengutronix.de
Sun Jan 27 05:46:52 EST 2013
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/cpu/start-pbl.c | 14 +++++---------
1 file changed, 5 insertions(+), 9 deletions(-)
diff --git a/arch/arm/cpu/start-pbl.c b/arch/arm/cpu/start-pbl.c
index d80ff9d..71732d6 100644
--- a/arch/arm/cpu/start-pbl.c
+++ b/arch/arm/cpu/start-pbl.c
@@ -156,18 +156,12 @@ static void __noreturn barebox_uncompress(void *compressed_start, unsigned int l
barebox();
}
-/*
- * Board code can jump here by either returning from board_init_lowlevel
- * or by calling this function directly.
- */
-void __naked __noreturn board_init_lowlevel_return(void)
+static noinline __noreturn void __barebox_arm_entry(uint32_t membase,
+ uint32_t memsize, uint32_t boarddata)
{
uint32_t offset;
uint32_t pg_start, pg_end, pg_len;
- /* Setup the stack */
- arm_setup_stack(STACK_BASE + STACK_SIZE - 16);
-
/* Get offset between linked address and runtime address */
offset = get_runtime_offset();
@@ -211,5 +205,7 @@ void __naked __noreturn board_init_lowlevel_return(void)
void __naked __noreturn barebox_arm_entry(uint32_t membase, uint32_t memsize,
uint32_t boarddata)
{
- board_init_lowlevel_return();
+ arm_setup_stack(STACK_BASE + STACK_SIZE - 16);
+
+ __barebox_arm_entry(membase, memsize, boarddata);
}
--
1.7.10.4
More information about the barebox
mailing list