Skip to content
Snippets Groups Projects
Commit 94092e36 authored by Tom Rini's avatar Tom Rini
Browse files

Revert "common/board_f: add setup of initial stack frame for MIPS"


Daniel discovered a better solution to the problem this was solving, so
don't do what this patch was doing anymore.

This reverts commit 666ba844.

Signed-off-by: default avatarTom Rini <trini@ti.com>
parent 2a82ec77
No related branches found
No related tags found
No related merge requests found
...@@ -581,7 +581,7 @@ static int reserve_stacks(void) ...@@ -581,7 +581,7 @@ static int reserve_stacks(void)
gd->irq_sp = gd->start_addr_sp; gd->irq_sp = gd->start_addr_sp;
# endif # endif
#else #else
# if defined(CONFIG_PPC) || defined(CONFIG_MIPS) # ifdef CONFIG_PPC
ulong *s; ulong *s;
# endif # endif
...@@ -611,12 +611,6 @@ static int reserve_stacks(void) ...@@ -611,12 +611,6 @@ static int reserve_stacks(void)
s = (ulong *) gd->start_addr_sp; s = (ulong *) gd->start_addr_sp;
*s = 0; /* Terminate back chain */ *s = 0; /* Terminate back chain */
*++s = 0; /* NULL return address */ *++s = 0; /* NULL return address */
# elif defined(CONFIG_MIPS)
/* Clear initial stack frame */
s = (ulong *) gd->start_addr_sp;
*s-- = 0;
*s-- = 0;
gd->start_addr_sp = (ulong) s;
# endif /* Architecture specific code */ # endif /* Architecture specific code */
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment