ARM: start: Fix boarddata allocation
It's essential that we always pass the same size value to arm_mem_barebox_image(), otherwise the result will be inconsistent. Pass arm_barebox_size instead of barebox_image_size as the latter does not contain the max bss segment size. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
80807102b9
commit
f7165017f4
|
@ -116,7 +116,7 @@ static inline unsigned long arm_mem_boarddata(unsigned long membase,
|
|||
{
|
||||
unsigned long mem;
|
||||
|
||||
mem = arm_mem_barebox_image(membase, endmem, barebox_image_size);
|
||||
mem = arm_mem_barebox_image(membase, endmem, arm_barebox_size);
|
||||
mem -= ALIGN(size, 64);
|
||||
|
||||
return mem;
|
||||
|
|
Loading…
Reference in New Issue