]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Revert "common/board_f: add setup of initial stack frame for MIPS"
authorTom Rini <trini@ti.com>
Mon, 24 Nov 2014 22:20:46 +0000 (17:20 -0500)
committerTom Rini <trini@ti.com>
Mon, 24 Nov 2014 22:20:46 +0000 (17:20 -0500)
Daniel discovered a better solution to the problem this was solving, so
don't do what this patch was doing anymore.

This reverts commit 666ba8444e81c3785a427ae6922e2feededab9a3.

Signed-off-by: Tom Rini <trini@ti.com>
common/board_f.c

index f8fd324d0d79741c0741f24d38645895c22a2fbb..98c9c728ce7358b5efd42c5fb50d51d6da94296b 100644 (file)
@@ -581,7 +581,7 @@ static int reserve_stacks(void)
        gd->irq_sp = gd->start_addr_sp;
 # endif
 #else
-# if defined(CONFIG_PPC) || defined(CONFIG_MIPS)
+# ifdef CONFIG_PPC
        ulong *s;
 # endif
 
@@ -611,12 +611,6 @@ 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;