Skip to content

Commit 015b0b2

Browse files
committed
Enable Interrupts before the C++ inits
1 parent ccdfd31 commit 015b0b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ee/startup/src/crt0.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,13 @@ static void _main()
112112
// initialize libcglue
113113
_libcglue_init();
114114

115+
// Enable interruts
116+
EI();
117+
115118
// call global constructors (weak)
116119
if (_init)
117120
_init();
118121

119-
// Enable interruts
120-
EI();
121-
122122
// call main
123123
retval = main(pa->argc, pa->argv);
124124

0 commit comments

Comments
 (0)