diff options
author | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | 2014-11-15 23:46:52 +0100 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-11-23 06:49:03 -0500 |
commit | 666ba8444e81c3785a427ae6922e2feededab9a3 (patch) | |
tree | 0662978bc6c7874fc56e29102758894cb92254ce /common | |
parent | 167544e83ab357d74932fd1404d5d9f28a35a2af (diff) | |
download | u-boot-666ba8444e81c3785a427ae6922e2feededab9a3.zip u-boot-666ba8444e81c3785a427ae6922e2feededab9a3.tar.gz u-boot-666ba8444e81c3785a427ae6922e2feededab9a3.tar.bz2 |
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>
Diffstat (limited to 'common')
-rw-r--r-- | common/board_f.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/common/board_f.c b/common/board_f.c index b5bebc9..57e8a67 100644 --- a/common/board_f.c +++ b/common/board_f.c @@ -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; |