Commit df3ad6c8 authored by Łukasz Dałek's avatar Łukasz Dałek Committed by Tom Rini

pxa: Save lr register in relocate_code function

When u-boot is compiled for PXA25x processor, pxa/start.S is calling
cpu_init_crit by BL instruction. BL is overwriting lr register so
relocate_code is going into infinite loop. This patch preservs lr
register in r12 before calling cpu_init_crit and after function returns
restores it.
Signed-off-by: default avatarLukasz Dalek <luk0104@gmail.com>
Acked-by: default avatarMarek Vasut <marex@denx.de>
parent 98148195
......@@ -183,7 +183,9 @@ relocate_code:
/* Disable the Dcache RAM lock for stack now */
#ifdef CONFIG_CPU_PXA25X
mov r12, lr
bl cpu_init_crit
mov lr, r12
#endif
adr r0, _start
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment