mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Ensure the first task starts with interrupts enabled.
This commit is contained in:
parent
ada4744871
commit
24cb048892
|
@ -135,6 +135,8 @@ void vPortSVCHandler( void )
|
||||||
" ldr r2, uxCriticalNestingConst2 \n" /* Restore the critical nesting count used by the task. */
|
" ldr r2, uxCriticalNestingConst2 \n" /* Restore the critical nesting count used by the task. */
|
||||||
" str r1, [r2] \n"
|
" str r1, [r2] \n"
|
||||||
" msr psp, r0 \n" /* Restore the task stack pointer. */
|
" msr psp, r0 \n" /* Restore the task stack pointer. */
|
||||||
|
" mov r0, #0 \n"
|
||||||
|
" msr basepri, r0 \n"
|
||||||
" orr r14, #0xd \n"
|
" orr r14, #0xd \n"
|
||||||
" bx r14 \n"
|
" bx r14 \n"
|
||||||
" \n"
|
" \n"
|
||||||
|
|
Loading…
Reference in a new issue