[PATCH] bugfix: don't rely on lr in arm_cpu_lowlevel_init

Sascha Hauer s.hauer at pengutronix.de
Thu Feb 27 04:41:15 EST 2014


On Thu, Feb 27, 2014 at 04:14:08PM +0800, 张忠山 wrote:
> From: 张忠山 <zzs0213 at gmail.com>
> 
> Signed-off-by: 张忠山 <zzs213 at 126.com>

Applied, thanks

Sascha

> ---
>  arch/arm/cpu/lowlevel.S |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/arch/arm/cpu/lowlevel.S b/arch/arm/cpu/lowlevel.S
> index 307b447..c615d5b 100644
> --- a/arch/arm/cpu/lowlevel.S
> +++ b/arch/arm/cpu/lowlevel.S
> @@ -4,6 +4,7 @@
>  
>  .section ".text_bare_init_","ax"
>  ENTRY(arm_cpu_lowlevel_init)
> +	mov	r2, lr
>  	/* set the cpu to SVC32 mode */
>  	mrs	r12, cpsr
>  	bic	r12, r12, #0x1f
> @@ -35,5 +36,5 @@ ENTRY(arm_cpu_lowlevel_init)
>  
>  	mcr	p15, 0, r12, c1, c0, 0
>  
> -	mov	pc, lr
> +	mov	pc, r2
>  ENDPROC(arm_cpu_lowlevel_init)
> -- 
> 1.7.9.5
> 
> 
> 
> _______________________________________________
> barebox mailing list
> barebox at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list