From: richardbarry Date: Sun, 6 Apr 2008 14:42:35 +0000 (+0000) Subject: Ensure the first task starts with interrupts enabled. X-Git-Tag: V5.0.0~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d7ba6a9387d82e40aa0c7c09b3a2d8786df98dd0;p=freertos Ensure the first task starts with interrupts enabled. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@299 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Source/portable/RVDS/ARM_CM3/port.c b/Source/portable/RVDS/ARM_CM3/port.c index 3fe98a99e..091addde9 100644 --- a/Source/portable/RVDS/ARM_CM3/port.c +++ b/Source/portable/RVDS/ARM_CM3/port.c @@ -129,6 +129,8 @@ __asm void vPortSVCHandler( void ) ldr r2, =uxCriticalNesting /* Restore the critical nesting count used by the task. */ str r1, [r2] msr psp, r0 /* Restore the task stack pointer. */ + mov r0, #0 + msr basepri, r0 orr r14, #0xd bx r14 }