Skip to content

Commit

Permalink
Enable Interrupts before the C++ inits
Browse files Browse the repository at this point in the history
  • Loading branch information
fjtrujy committed Jul 15, 2024
1 parent ccdfd31 commit 015b0b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ee/startup/src/crt0.c
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,13 @@ static void _main()
// initialize libcglue
_libcglue_init();

// Enable interruts
EI();

// call global constructors (weak)
if (_init)
_init();

// Enable interruts
EI();

// call main
retval = main(pa->argc, pa->argv);

Expand Down

0 comments on commit 015b0b2

Please sign in to comment.