mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-27 23:21:01 +00:00
arm, arm926ejs: Fix clear bss loop for zero length bss
This patch fixes the clear bss loop for bss sections that have zero length, i.e., where __bss_start == __bss_end__. Signed-off-by: Christian Riesch <christian.riesch@omicron.at> Cc: Albert Aribaud <albert.u.boot@aribaud.net>
This commit is contained in:
parent
ef426d45cc
commit
8f1da53508
1 changed files with 5 additions and 3 deletions
|
@ -301,10 +301,12 @@ clear_bss:
|
||||||
#endif
|
#endif
|
||||||
mov r2, #0x00000000 /* clear */
|
mov r2, #0x00000000 /* clear */
|
||||||
|
|
||||||
clbss_l:str r2, [r0] /* clear loop... */
|
clbss_l:cmp r0, r1 /* clear loop... */
|
||||||
|
bhs clbss_e /* if reached end of bss, exit */
|
||||||
|
str r2, [r0]
|
||||||
add r0, r0, #4
|
add r0, r0, #4
|
||||||
cmp r0, r1
|
b clbss_l
|
||||||
bne clbss_l
|
clbss_e:
|
||||||
|
|
||||||
#ifndef CONFIG_SPL_BUILD
|
#ifndef CONFIG_SPL_BUILD
|
||||||
bl coloured_LED_init
|
bl coloured_LED_init
|
||||||
|
|
Loading…
Reference in a new issue