ARM: start: drop unnecessary variable
No need anymore to store arm_head_bottom globally as it's only used in barebox_non_pbl_start(). Also rename the variable to malloc_end which is more meaningful. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
0aa0bfc944
commit
849cd5cdb4
|
@ -34,7 +34,6 @@
|
|||
#include "mmu-early.h"
|
||||
|
||||
unsigned long arm_stack_top;
|
||||
static unsigned long arm_head_bottom;
|
||||
static unsigned long arm_barebox_size;
|
||||
static void *barebox_boarddata;
|
||||
static unsigned long barebox_boarddata_size;
|
||||
|
@ -162,7 +161,7 @@ __noreturn void barebox_non_pbl_start(unsigned long membase,
|
|||
|
||||
arm_stack_top = endmem;
|
||||
arm_barebox_size = barebox_size;
|
||||
arm_head_bottom = arm_mem_barebox_image(membase, endmem,
|
||||
malloc_end = arm_mem_barebox_image(membase, endmem,
|
||||
arm_barebox_size);
|
||||
|
||||
if (IS_ENABLED(CONFIG_MMU_EARLY)) {
|
||||
|
@ -201,12 +200,10 @@ __noreturn void barebox_non_pbl_start(unsigned long membase,
|
|||
barebox_boarddata = memcpy((void *)mem, boarddata,
|
||||
totalsize);
|
||||
barebox_boarddata_size = totalsize;
|
||||
arm_head_bottom = mem;
|
||||
malloc_end = mem;
|
||||
}
|
||||
}
|
||||
|
||||
malloc_end = arm_head_bottom;
|
||||
|
||||
/*
|
||||
* Maximum malloc space is the Kconfig value if given
|
||||
* or 1GB.
|
||||
|
|
Loading…
Reference in New Issue