summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2013-02-26 19:08:28 -0800
committerRonald G. Minnich <rminnich@gmail.com>2013-03-13 23:41:23 +0100
commita0e27979c06088912489633a67644254bc5a1f70 (patch)
tree4254efbfc36339afa84c52bf7ba3e2ea31782ad9 /payloads/libpayload/arch
parent0274919bf6853b7a437025a8abf6624b824b3d91 (diff)
downloadcoreboot-a0e27979c06088912489633a67644254bc5a1f70.tar.xz
libpayload: Move over to the payload's stack during startup
Don't keep using the coreboot stack on ARMv7. Change-Id: I734c5d77f8584e30ee0c720d41e21e3040f56db4 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://review.coreboot.org/2668 Tested-by: build bot (Jenkins) Reviewed-by: Marc Jones <marc.jones@se-eng.com> Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'payloads/libpayload/arch')
-rw-r--r--payloads/libpayload/arch/armv7/head.S9
1 files changed, 8 insertions, 1 deletions
diff --git a/payloads/libpayload/arch/armv7/head.S b/payloads/libpayload/arch/armv7/head.S
index e1b5737ead..7a706e3aa6 100644
--- a/payloads/libpayload/arch/armv7/head.S
+++ b/payloads/libpayload/arch/armv7/head.S
@@ -31,14 +31,21 @@
.text
.align 4
+1:
+.word _stack
+
/*
* Our entry point
*/
_entry:
/* TODO: disable interrupts */
+
/* TODO: Clear BSS */
- /* TODO: Setup new stack */
+
+ /* Setup new stack */
+ ldr sp, 1b
+
/* TODO: Save old stack pointer */
/* Let's rock. */