Init: Move platform_init() before MemoryManager::init()
All checks were successful
continuous-integration/drone/push Build is passing

This enables NX before we actually use it.
Wasn't causing problems with KVM on, but crashed with KVM off with a 'reserved bit set' page fault.
This commit is contained in:
apio 2022-12-26 12:12:55 +01:00
parent 0054777e7d
commit 73c58bd902
Signed by: apio
GPG Key ID: B8A7D06E42258954

View File

@ -28,10 +28,10 @@ void Init::early_init()
setup_log(log_debug_enabled(), log_serial_enabled(), true);
CPU::platform_init();
MemoryManager::init();
InitRD::initialize();
CPU::platform_init();
MemoryManager::protect_kernel_sections().expect_release_value("We should succeed to protect sections");
}