mirror of
https://xff.cz/git/u-boot/
synced 2025-09-03 17:52:07 +02:00
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 <yamada.m@jp.panasonic.com>
This commit is contained in:
committed by
Albert ARIBAUD
parent
8386ca8bea
commit
fb8d49cb44
@@ -25,9 +25,6 @@ gd_t gdata __attribute__ ((section(".data")));
|
|||||||
*/
|
*/
|
||||||
void __weak board_init_f(ulong dummy)
|
void __weak board_init_f(ulong dummy)
|
||||||
{
|
{
|
||||||
/* Set the stack pointer. */
|
|
||||||
asm volatile("mov sp, %0\n" : : "r"(CONFIG_SPL_STACK));
|
|
||||||
|
|
||||||
/* Clear the BSS. */
|
/* Clear the BSS. */
|
||||||
memset(__bss_start, 0, __bss_end - __bss_start);
|
memset(__bss_start, 0, __bss_end - __bss_start);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user