minor changes & work on threading
This commit is contained in:
+3
-2
@@ -13,7 +13,7 @@
|
||||
|
||||
extern crate alloc;
|
||||
use crate::{
|
||||
arch::x86_64::memory::{init_frame_allocator, init_page_table},
|
||||
arch::x86_64::memory::init_page_table,
|
||||
prelude::*,
|
||||
};
|
||||
use arch::x86_64::memory::allocation::heap_alloc::init_heap;
|
||||
@@ -21,6 +21,7 @@ use arch::x86_64::memory::memory_map;
|
||||
use core::arch::asm;
|
||||
use limine::BaseRevision;
|
||||
use x86_64::VirtAddr;
|
||||
use crate::arch::x86_64::memory::FoundryOSFrameAllocator;
|
||||
|
||||
pub mod arch;
|
||||
pub mod resources;
|
||||
@@ -89,7 +90,7 @@ pub fn boot() -> Result<(), &'static str> {
|
||||
println_log!("[Success]");
|
||||
|
||||
print_log!(" Setting Up Page Table... ");
|
||||
init_frame_allocator(memory_map);
|
||||
unsafe { FoundryOSFrameAllocator::init(memory_map) };
|
||||
println_log!("[Success]");
|
||||
|
||||
print_log!(" Initialising Heap... ");
|
||||
|
||||
Reference in New Issue
Block a user