arm/cpu/lowlevel: fix: possible processor mode change
This is a re-application of fix 17644b55.
arm_cpu_lowlevel_init() will set the processor mode to 0x13 (supervisor).
When this function is entered via a different processor mode, register
banking will happen to lr (r14), resulting in an invalid return address.
This fix will preserve the return address manually.

Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 4189af5 commit 7fb798c2d3c0e0b20cae55bdfacfafe7e12e8f4f
@Alexander Kurz Alexander Kurz authored on 2 Mar 2016
Sascha Hauer committed on 4 Mar 2016
Showing 1 changed file
View
arch/arm/cpu/lowlevel.S