summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-09-13 15:36:18 +0200
committerHans de Goede <hdegoede@redhat.com>2015-10-20 18:40:27 +0200
commit8656c4f76f012254a1a01d6d7956d85d7d3d73bf (patch)
tree16f8c3bcccebfd3fe5c214806fbc5ddf97ea33e3
parent5ec0003b19cbdf06ccd6941237cbc0d1c3468e2d (diff)
spl: spl_relocate_stack_gd: Do not unnecessarily clear bss
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 <hdegoede@redhat.com> Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r--common/spl/spl.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/common/spl/spl.c b/common/spl/spl.c
index a5892d7988..b09a6268e6 100644
--- 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;