as3525*: setup stack pointer before we use it

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25198 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-03-15 11:26:49 +00:00
parent d384f8d064
commit 191857cc8d

View file

@ -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: