mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
common/board_f: add setup of initial stack frame for MIPS
The MIPS specific setup of the initial stack frame was not ported to generic board_f. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
This commit is contained in:

committed by
Tom Rini

parent
167544e83a
commit
666ba8444e
@ -579,7 +579,7 @@ static int reserve_stacks(void)
|
|||||||
gd->irq_sp = gd->start_addr_sp;
|
gd->irq_sp = gd->start_addr_sp;
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# ifdef CONFIG_PPC
|
# if defined(CONFIG_PPC) || defined(CONFIG_MIPS)
|
||||||
ulong *s;
|
ulong *s;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
@ -609,6 +609,12 @@ 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;
|
||||||
|
Reference in New Issue
Block a user