]> git.sur5r.net Git - freertos/commitdiff
Improve efficiency even further. Introduce the configMAX_SYSCALL_INTERRUPT_PRIORITY...
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 25 Jul 2008 02:40:35 +0000 (02:40 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Fri, 25 Jul 2008 02:40:35 +0000 (02:40 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@418 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/IAR/ARM_CM3/portasm.s

index d4071e39ceb202e3f4d40b5c700204dc9a229880..d3329a30d874e747a08d0aae94f740ffe24c5b49 100644 (file)
@@ -146,9 +146,14 @@ vPortSVCHandler;
 /*-----------------------------------------------------------*/\r
 \r
 vPortStartFirstTask\r
+       /* Use the NVIC offset register to locate the stack. */\r
+       ldr r0, =0xE000ED08\r
+       ldr r0, [r0]\r
+       ldr r0, [r0]\r
+       /* Set the msp back to the start of the stack. */\r
        msr msp, r0\r
+       /* Call SVC to start the first task. */\r
        svc 0\r
 \r
-\r
        END\r
        
\ No newline at end of file