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

View File

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