diff --git a/Kernel.cpp b/Kernel.cpp index 74d9f54..18b0baf 100644 --- a/Kernel.cpp +++ b/Kernel.cpp @@ -297,6 +297,9 @@ EXTERNC NIF void Main(BootInfo *Info) KPrint("Initializing Power Manager"); PowerManager = new Power::Power; + KPrint("Enabling Interrupts on Bootstrap Processor"); + Interrupts::Enable(0); + #if defined(a64) PowerManager->InitDSDT(); #elif defined(a32) @@ -304,9 +307,6 @@ EXTERNC NIF void Main(BootInfo *Info) #elif defined(aa64) #endif - KPrint("Enabling Interrupts on Bootstrap Processor"); - Interrupts::Enable(0); - KPrint("Initializing Timers"); TimeManager = new Time::time; TimeManager->FindTimers(PowerManager->GetACPI()); @@ -484,6 +484,7 @@ EXTERNC __no_stack_protector NIF void Entry(BootInfo *Info) } // https://wiki.osdev.org/Calling_Global_Constructors + trace("There are %d constructors to call", __init_array_end - __init_array_start); for (CallPtr *func = __init_array_start; func != __init_array_end; func++) (*func)();