public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] powerpc/mpc85xx: The end address of the bss in the SPL should be 4byte alignment
Date: Wed, 15 May 2013 11:50:36 -0500	[thread overview]
Message-ID: <1368636636.8202.24@snotra> (raw)
In-Reply-To: <20130514103005.45F6B3804AF@gemini.denx.de> (from wd@denx.de on Tue May 14 05:30:05 2013)

On 05/14/2013 05:30:05 AM, Wolfgang Denk wrote:
> Dear ying.zhang at freescale.com,
> 
> In message  
> <1368520918-22496-1-git-send-email-ying.zhang@freescale.com> you  
> wrote:
> > From: Ying Zhang <b40530@freescale.com>
> 
> You mark this patch as V2 but there is no history of changes.  Please
> always include information what exactly was changed.
> 
> > There will clear the BSS in the function clear_bss(), the reset  
> address of
> > the BSS started from the __bss_start, and increased by four-byte  
> increments,
> > finally stoped depending on the adress is equal to the _bss_end. If  
> the end
> > address __bss_end is not alignment to 4byte, it will be an infinite  
> loop.
> >
> > The end address of the bss should be 4byte aligned.
> 
> NAK. This is the wrong way to fix this.
> 
> Instead, the test in the loop should be fixed to test for "<=".

I agree that we should use <= in the loop, but 4-byte alignment is also  
needed unless we change it from an stw loop to an stb loop.

-Scott

      reply	other threads:[~2013-05-15 16:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-14  8:41 [U-Boot] [PATCH v2] powerpc/mpc85xx: The end address of the bss in the SPL should be 4byte alignment ying.zhang at freescale.com
2013-05-14 10:30 ` Wolfgang Denk
2013-05-15 16:50   ` Scott Wood [this message]

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=1368636636.8202.24@snotra \
    --to=scottwood@freescale.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