From 015b0b288e06e68836a7ea88caa7141911bc62fa Mon Sep 17 00:00:00 2001 From: Francisco Javier Trujillo Mata Date: Mon, 15 Jul 2024 23:42:28 +0200 Subject: [PATCH] Enable Interrupts before the C++ inits --- ee/startup/src/crt0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ee/startup/src/crt0.c b/ee/startup/src/crt0.c index bf894c3a1a7..67dc9b15b1b 100644 --- a/ee/startup/src/crt0.c +++ b/ee/startup/src/crt0.c @@ -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);