提交 666ba844 编写于 作者: D Daniel Schwierzeck 提交者: Tom Rini

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: NDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
上级 167544e8
......@@ -579,7 +579,7 @@ static int reserve_stacks(void)
gd->irq_sp = gd->start_addr_sp;
# endif
#else
# ifdef CONFIG_PPC
# if defined(CONFIG_PPC) || defined(CONFIG_MIPS)
ulong *s;
# endif
......@@ -609,6 +609,12 @@ static int reserve_stacks(void)
s = (ulong *) gd->start_addr_sp;
*s = 0; /* Terminate back chain */
*++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 */
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册