diff --git a/Source/portable/GCC/ARM_CM3/port.c b/Source/portable/GCC/ARM_CM3/port.c index eb0e03340e..2ae1033199 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"