]> git.sur5r.net Git - freertos/commitdiff
Ensure the first task starts with interrupts enabled.
authorrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 6 Apr 2008 14:38:27 +0000 (14:38 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 6 Apr 2008 14:38:27 +0000 (14:38 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@297 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/GCC/ARM_CM3/port.c

index eb0e03340ebb05907a6bba22f726b865c648717f..2ae10331991ed43f65ae39e9d0f18630ae937195 100644 (file)
@@ -135,6 +135,8 @@ void vPortSVCHandler( void )
                                        "       ldr r2, uxCriticalNestingConst2 \n" /* Restore the critical nesting count used by the task. */\r
                                        "       str r1, [r2]                                    \n"\r
                                        "       msr psp, r0                                             \n" /* Restore the task stack pointer. */\r
+                                       "       mov r0, #0                                              \n"\r
+                                       "       msr     basepri, r0                                     \n"                     \r
                                        "       orr r14, #0xd                                   \n"\r
                                        "       bx r14                                                  \n"\r
                                        "                                                                       \n"\r