cstartup: (re-)enable interrupts before calling main()

This commit is contained in:
Harald Welte 2017-03-02 23:19:13 +01:00
parent ec9b5fff3f
commit db17e83960
1 changed files with 3 additions and 3 deletions

View File

@ -184,12 +184,12 @@ void ResetException( void )
SCB->VTOR |= 1 << SCB_VTOR_TBLBASE_Pos ;
}
/* Branch to main function */
main() ;
/* App should have disabled interrupts during the transition */
__enable_irq();
/* Branch to main function */
main() ;
/* Infinite loop */
while ( 1 ) ;
}