<br><br><div class="gmail_quote">On Wed, Feb 22, 2012 at 3:11 AM, Manuel Braga <span dir="ltr"><<a href="mailto:mul.braga@gmail.com">mul.braga@gmail.com</a>></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 <<a href="mailto:mr.hipboi@gmail.com">mr.hipboi@gmail.com</a>><br>
wrote:<br>
<div><div class="h5">> Hi,<br>
> i met this problem on u-boot spl. In u-boot relocate_code, there<br>
> is a routine clean the .bss section in start.S(code here[1]), but<br>
> there is not bss section in my build. The u-boot-spl.map file is<br>
> here [2]. I looked the register when calling clear_bss routine, r0<br>
> and r1 are both 0x50000000, so the clear loop never stops. Can anyone<br>
> tell me why no bss section after the buid? The u-boot code is at [3].<br>
><br>
> [1] <a href="http://nopaste.us/5923.html" target="_blank">http://nopaste.us/5923.html</a><br>
> [2] <a href="http://nopaste.us/5922.html" target="_blank">http://nopaste.us/5922.html</a><br>
> [3]<br>
> <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'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'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>
} >.sdram<br>
<br>
if there isn'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'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'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="'trebuchet ms', sans-serif">Keep simple, stay foolish.</font>
<div> </div><br>