Call init_mm from correct function.

This commit is contained in:
4lDO2
2023-06-26 13:39:49 +02:00
parent a599d9b389
commit 7aca53753e
+3 -2
View File
@@ -191,6 +191,9 @@ pub unsafe extern fn kstart(args_ptr: *const KernelArgs) -> ! {
// Initialize all of the non-core devices not otherwise needed to complete initialization
device::init_noncore();
// Initialize data structures used to track pages.
memory::init_mm();
// Stop graphical debug
#[cfg(feature = "graphical_debug")]
graphical_debug::fini();
@@ -263,8 +266,6 @@ pub unsafe extern fn kstart_ap(args_ptr: *const KernelArgsAp) -> ! {
// Initialize devices (for AP)
device::init_ap();
memory::init_mm();
AP_READY.store(true, Ordering::SeqCst);
cpu_id