ARM7TDMI: Use SVC stack.
[bertos.git] / bertos / cpu / arm / hw / crt_arm7tdmi.S
index ca2e968cee388ead8f196dc522bfe28a4a432aea..4c81101dbe4075871559d3f8afe5a851b7e51122 100644 (file)
@@ -67,8 +67,8 @@ __init0:
         ldr     r0, =__stack_und_end
         msr     CPSR_c, #ARM_MODE_UNDEF | IRQ_BIT | FIQ_BIT
         mov     r13, r0
-        ldr     r0, =__stack_sys_end
-        msr     CPSR_c, #ARM_MODE_SYS | IRQ_BIT | FIQ_BIT
+        ldr     r0, =__stack_svc_end
+        msr     CPSR_c, #ARM_MODE_SVC | IRQ_BIT | FIQ_BIT
         mov     r13, r0
 
        /*