]> git.sur5r.net Git - freertos/blobdiff - Source/portable/GCC/ARM_CM3/port.c
Add an cpsie i before the SVC call that starts the scheduler. This is just in case...
[freertos] / Source / portable / GCC / ARM_CM3 / port.c
index 6f35e6dd53f06b9e5bba2b8c150d6ae52c10a28d..85d28c6ecd0029aab1574ebe27016d7634f00b45 100644 (file)
@@ -155,7 +155,9 @@ void vPortStartFirstTask( void )
                                        " ldr r0, [r0]                  \n"\r
                                        " ldr r0, [r0]                  \n"\r
                                        " msr msp, r0                   \n" /* Set the msp back to the start of the stack. */\r
+                                       " cpsie i                               \n"\r
                                        " svc 0                                 \n" /* System call to start first task. */\r
+                                       " nop                                   \n"\r
                                );\r
 }\r
 /*-----------------------------------------------------------*/\r