]> 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:42:35 +0000 (14:42 +0000)
committerrichardbarry <richardbarry@1d2547de-c912-0410-9cb9-b8ca96c0e9e2>
Sun, 6 Apr 2008 14:42:35 +0000 (14:42 +0000)
git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@299 1d2547de-c912-0410-9cb9-b8ca96c0e9e2

Source/portable/RVDS/ARM_CM3/port.c

index 3fe98a99e48addf2a6ec51ba7edcef9d178e420e..091addde9b11c17692d98ae837e06f35fa9df2e8 100644 (file)
@@ -129,6 +129,8 @@ __asm void vPortSVCHandler( void )
        ldr r2, =uxCriticalNesting      /* Restore the critical nesting count used by the task. */\r
        str r1, [r2]                            \r
        msr psp, r0                                     /* Restore the task stack pointer. */\r
+       mov r0, #0\r
+       msr     basepri, r0\r
        orr r14, #0xd                           \r
        bx r14                                          \r
 }\r