From: Masahiro Yamada Date: Wed, 17 Jul 2013 11:35:55 +0000 (+0900) Subject: arm: spl: Do not set the stack pointer twice X-Git-Tag: v2013.10-rc4~1^2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fb8d49cb4492332066a2dc775ef3c57c49fd1eca;p=u-boot arm: spl: Do not set the stack pointer twice Because the stack pointer is already set in arch/arm/lib/crt0.S, we do not need to set it in arch/arm/lib/spl.c. Signed-off-by: Masahiro Yamada --- diff --git a/arch/arm/lib/spl.c b/arch/arm/lib/spl.c index 26d0be47e5..dfcc596815 100644 --- a/arch/arm/lib/spl.c +++ b/arch/arm/lib/spl.c @@ -25,9 +25,6 @@ gd_t gdata __attribute__ ((section(".data"))); */ void __weak board_init_f(ulong dummy) { - /* Set the stack pointer. */ - asm volatile("mov sp, %0\n" : : "r"(CONFIG_SPL_STACK)); - /* Clear the BSS. */ memset(__bss_start, 0, __bss_end - __bss_start);