summaryrefslogtreecommitdiff
path: root/payloads/libpayload/arch
diff options
context:
space:
mode:
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. */