Signed-off-by: Juergen Borleis <jbe@xxxxxxxxxxxxxx> --- arch/ppc/mach-mpc5xxx/start.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/ppc/mach-mpc5xxx/start.S b/arch/ppc/mach-mpc5xxx/start.S index 291f625..6a32718 100644 --- a/arch/ppc/mach-mpc5xxx/start.S +++ b/arch/ppc/mach-mpc5xxx/start.S @@ -66,6 +66,7 @@ * Second stage loader entry. When entered here we assume that spr 311 * is set to the current MBAR address. */ +_base: mfspr r4, MBAR b setup_mbar . = EXC_OFF_SYS_RESET @@ -251,9 +252,8 @@ _continue_init: bl calc_source /* Calculate Source Address */ calc_source: - mfspr r4, LR - subi r4, r4, (calc_source - _start) - subi r4, r4, 0x100 + mflr r4 + subi r4, r4, (calc_source - _base) lis r5, __init_size@h /* Size */ ori r5, r5, __init_size@l -- 2.1.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox