public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Zhong Hongbo <bocui107@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] armv7: Fix infinite loop for the spl boot
Date: Thu, 05 Jul 2012 19:53:46 +0800	[thread overview]
Message-ID: <4FF5804A.8040701@gmail.com> (raw)
In-Reply-To: <1341272798-3460-1-git-send-email-bocui107@gmail.com>

Hi Albert,

Could you applied the patch to the arm tree?

Thanks,
hongbo
On 07/03/2012 07:46 AM, Zhong Hongbo wrote:
> From: Zhong Hongbo <bocui107@gmail.com>
> 
> In the spl booting step, When __bss_start is equal to __bss_end__,
> The loop will clear all the things in CPU space. If there are have
> the same address for this symbol, To skip the clear bss section.
> 
> Signed-off-by: Hongbo Zhong <bocui107@gmail.com>
> ---
>  arch/arm/cpu/armv7/start.S |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/cpu/armv7/start.S b/arch/arm/cpu/armv7/start.S
> index 76ccef1..c72f337 100644
> --- a/arch/arm/cpu/armv7/start.S
> +++ b/arch/arm/cpu/armv7/start.S
> @@ -258,6 +258,8 @@ clear_bss:
>  	/* No relocation for SPL */
>  	ldr	r0, =__bss_start
>  	ldr	r1, =__bss_end__
> +	cmp	r0, r1
> +	beq	skip_clbss
>  #else
>  	ldr	r0, _bss_start_ofs
>  	ldr	r1, _bss_end_ofs
> @@ -271,6 +273,7 @@ clbss_l:str	r2, [r0]		/* clear loop...		    */
>  	add	r0, r0, #4
>  	cmp	r0, r1
>  	bne	clbss_l
> +skip_clbss:
>  
>  /*
>   * We are done. Do not return, instead branch to second part of board
> 

  reply	other threads:[~2012-07-05 11:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-02 23:46 [U-Boot] [PATCH] armv7: Fix infinite loop for the spl boot Zhong Hongbo
2012-07-05 11:53 ` Zhong Hongbo [this message]
2012-07-05 12:19   ` Albert ARIBAUD
2012-07-05 12:34     ` Zhong Hongbo
2012-07-05 17:35   ` Albert ARIBAUD
2012-07-06 11:42     ` Zhong Hongbo
2012-07-06 11:49       ` Andreas Bießmann
2012-07-06 11:53         ` Zhong Hongbo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FF5804A.8040701@gmail.com \
    --to=bocui107@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox