9
0
Fork 0

ARM start-pbl: make board_init_lowlevel_return static

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-01-25 23:11:53 +01:00
parent 91493b1b5d
commit c030487301
1 changed files with 5 additions and 9 deletions

View File

@ -139,18 +139,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();
@ -194,5 +188,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);
}