summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-03-15 11:26:49 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-03-15 11:26:49 +0000
commit191857cc8d30550719b018f7e0420dcd28a3dee3 (patch)
tree51c57db08c73b281e461f96ab45f00be2588f6fd
parentd384f8d06487b75b0687d48b65e519a17eea7280 (diff)
downloadrockbox-191857cc8d30550719b018f7e0420dcd28a3dee3.tar.gz
rockbox-191857cc8d30550719b018f7e0420dcd28a3dee3.tar.bz2
rockbox-191857cc8d30550719b018f7e0420dcd28a3dee3.zip
as3525*: setup stack pointer before we use it
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25198 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--firmware/target/arm/crt0.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/crt0.S b/firmware/target/arm/crt0.S
index cb8242c72e..1cb9f9186e 100644
--- a/firmware/target/arm/crt0.S
+++ b/firmware/target/arm/crt0.S
@@ -59,6 +59,7 @@ newstart:
#if (CONFIG_CPU==AS3525 || CONFIG_CPU==AS3525v2) && !defined(BOOTLOADER)
/* Setup MMU : has to be done before accessing IRAM ! */
+ ldr sp, =stackend
bl memory_init
/* Zero out IBSS */
@@ -109,7 +110,6 @@ newstart:
bhi 1b
/* Set up some stack and munge it with 0xdeadbeef */
- ldr sp, =stackend
ldr r2, =stackbegin
ldr r3, =0xdeadbeef
1: