From 42fe9bca154421a6c11ec7519baa7510942e5c03 Mon Sep 17 00:00:00 2001 From: richardbarry Date: Sun, 6 Apr 2008 14:38:27 +0000 Subject: [PATCH] Ensure the first task starts with interrupts enabled. 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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/portable/GCC/ARM_CM3/port.c b/Source/portable/GCC/ARM_CM3/port.c index eb0e03340..2ae103319 100644 --- a/Source/portable/GCC/ARM_CM3/port.c +++ b/Source/portable/GCC/ARM_CM3/port.c @@ -135,6 +135,8 @@ void vPortSVCHandler( void ) " ldr r2, uxCriticalNestingConst2 \n" /* Restore the critical nesting count used by the task. */ " str r1, [r2] \n" " msr psp, r0 \n" /* Restore the task stack pointer. */ + " mov r0, #0 \n" + " msr basepri, r0 \n" " orr r14, #0xd \n" " bx r14 \n" " \n" -- 2.39.5