mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] bugfix: don't rely on lr in arm_cpu_lowlevel_init
@ 2014-02-27  8:14 张忠山
  2014-02-27  9:41 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: 张忠山 @ 2014-02-27  8:14 UTC (permalink / raw)
  To: barebox; +Cc: 张忠山

From: 张忠山 <zzs0213@gmail.com>

Signed-off-by: 张忠山 <zzs213@126.com>
---
 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@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] bugfix: don't rely on lr in arm_cpu_lowlevel_init
  2014-02-27  8:14 [PATCH] bugfix: don't rely on lr in arm_cpu_lowlevel_init 张忠山
@ 2014-02-27  9:41 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2014-02-27  9:41 UTC (permalink / raw)
  To: 张忠山; +Cc: barebox, 张忠山

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

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-02-27  9:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-27  8:14 [PATCH] bugfix: don't rely on lr in arm_cpu_lowlevel_init 张忠山
2014-02-27  9:41 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox