Init: Move platform_init() before MemoryManager::init()
All checks were successful
continuous-integration/drone/push Build is passing
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:
parent
0054777e7d
commit
73c58bd902
@ -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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user