projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ec0003
)
spl: spl_relocate_stack_gd: Do not unnecessarily clear bss
author
Hans de Goede
<
[email protected]
>
Sun, 13 Sep 2015 13:36:18 +0000
(15:36 +0200)
committer
Hans de Goede
<
[email protected]
>
Tue, 20 Oct 2015 16:40:27 +0000
(18:40 +0200)
spl_relocate_stack_gd only gets called from arch/arm/lib/crt0.S which
clears the bss directly after calling it, so there is no need to clear
it from spl_relocate_stack_gd.
Signed-off-by: Hans de Goede <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
common/spl/spl.c
patch
|
blob
|
history
diff --git
a/common/spl/spl.c
b/common/spl/spl.c
index a5892d7988747505c7022abcc8ba55bd276127d4..b09a6268e623c3f4b23b69c80c68687ea48ec131 100644
(file)
--- a/
common/spl/spl.c
+++ b/
common/spl/spl.c
@@
-347,9
+347,6
@@
ulong spl_relocate_stack_gd(void)
memcpy(new_gd, (void *)gd, sizeof(gd_t));
gd = new_gd;
- /* Clear the BSS. */
- memset(__bss_start, 0, __bss_end - __bss_start);
-
return ptr;
#else
return 0;