ARM: stm32mp: add stm32mp_cpu_lowlevel_init with stack set up
When barebox is invoked out of the TF-A v2.1, it's started with
sp, r0, r1, r2 all equal to zero. To use the new RAM size calculating
stm32mp1_barebox_entry, we need to have a stack to handle spillage.

Add a stm32mp_cpu_lowlevel_init wrapper around arm_cpu_lowlevel_init,
which additionally configures a 64 byte stack after the end of the
barebox binary. This should be enough to help us through the RAM size
calculation. If not, compression will fail because of data corruption
and stack size can be increased as necessary.

Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 2905fb4 commit a0319d2beef4789c743132fae313718f6e6a4b20
@Ahmad Fatoum Ahmad Fatoum authored on 12 Nov 2019
Sascha Hauer committed on 13 Nov 2019
Showing 1 changed file
View
arch/arm/mach-stm32mp/include/mach/entry.h