Add an cpsie i before the SVC call that starts the scheduler. This is just in case the C start up code leaves interrupts globally disabled.

This commit is contained in:
Richard Barry 2010-12-23 10:39:02 +00:00
parent 6046eea342
commit a67c624894
3 changed files with 8 additions and 10 deletions

View file

@ -155,7 +155,9 @@ void vPortStartFirstTask( void )
" ldr r0, [r0] \n"
" ldr r0, [r0] \n"
" msr msp, r0 \n" /* Set the msp back to the start of the stack. */
" cpsie i \n"
" svc 0 \n" /* System call to start first task. */
" nop \n"
);
}
/*-----------------------------------------------------------*/