From 2bc9dfa3f8f73386b75c195ea5a4c67f3f50458b Mon Sep 17 00:00:00 2001 From: Richard Barry Date: Sun, 6 Apr 2008 14:42:35 +0000 Subject: [PATCH] Ensure the first task starts with interrupts enabled. --- Source/portable/RVDS/ARM_CM3/port.c | 2 ++ 1 file changed, 2 insertions(+) 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 }