<br><br><div class="gmail_quote">On Wed, Feb 22, 2012 at 3:11 AM, Manuel Braga <span dir="ltr">&lt;<a href="mailto:mul.braga@gmail.com">mul.braga@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

On Tue, 21 Feb 2012 22:13:15 +0800 Tom Cubie &lt;<a href="mailto:mr.hipboi@gmail.com">mr.hipboi@gmail.com</a>&gt;<br>
wrote:<br>
<div><div class="h5">&gt; Hi,<br>
&gt;     i met this problem on u-boot spl. In u-boot relocate_code, there<br>
&gt; is a routine clean the .bss section in start.S(code here[1]), but<br>
&gt; there is not bss section in my build. The u-boot-spl.map file is<br>
&gt; here [2]. I looked the register when calling clear_bss routine, r0<br>
&gt; and r1 are both 0x50000000, so the clear loop never stops. Can anyone<br>
&gt; tell me why no bss section after the buid? The u-boot code is at [3].<br>
&gt;<br>
&gt; [1] <a href="http://nopaste.us/5923.html" target="_blank">http://nopaste.us/5923.html</a><br>
&gt; [2] <a href="http://nopaste.us/5922.html" target="_blank">http://nopaste.us/5922.html</a><br>
&gt; [3]<br>
&gt; <a href="http://git.hands.com/?p=u-boot.git;a=shortlog;h=refs/heads/lichee-dev-mmc" target="_blank">http://git.hands.com/?p=u-boot.git;a=shortlog;h=refs/heads/lichee-dev-mmc</a><br>
<br>
</div></div>Hi, i don&#39;t have any experience with u-boot, but just downloaded and<br>
compiled, and is as you say, the bss section has size zero.<br>
If this is wrong or right, i don&#39;t know.<br>
<br>
But as by the linker script(u-boot-spl.lds)<br>
       .bss :<br>
        {<br>
                . = ALIGN(4);<br>
                __bss_start = .;<br>
                *(.bss*)<br>
                . = ALIGN(4);<br>
                __bss_end__ = .;<br>
        } &gt;.sdram<br>
<br>
if there isn&#39;t any .bss* objects, __bss_end__ will be equal to<br>
__bss_start, you saw in the registers both set to 0x50000000<br>
<br>
<br>
Shouldn&#39;t clear_bss also handle this case of zero size?<br>
In other arm cpus start.S, clear_bss is totaly removed with<br>
#ifndef CONFIG_SPL_BUILD, but for arm7 is not.<br>
Isn&#39;t here the problem?<br>
<br></blockquote><div><br></div><div>Yes, you are right. I have checked all the arm start.s. Only arm926ejs</div><div>and armv7 has the bss clean in spl build.</div><div><br></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


_______________________________________________<br>
arm-netbook mailing list <a href="mailto:arm-netbook@lists.phcomp.co.uk">arm-netbook@lists.phcomp.co.uk</a><br>
<a href="http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook" target="_blank">http://lists.phcomp.co.uk/mailman/listinfo/arm-netbook</a><br>
Send large attachments to <a href="mailto:arm-netbook@files.phcomp.co.uk">arm-netbook@files.phcomp.co.uk</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="&#39;trebuchet ms&#39;, sans-serif">Keep simple, stay foolish.</font> 
<div> </div><br>