totally didn't import an allocator...

This commit is contained in:
2025-02-22 21:02:29 +00:00
parent 36cb118933
commit 361c67764d
4 changed files with 36 additions and 4 deletions
+4 -1
View File
@@ -4,6 +4,7 @@
extern crate alloc;
use core::arch::asm;
use lib_alloc::allocator::init_heap;
use limine::request::{RequestsEndMarker, RequestsStartMarker};
use limine::BaseRevision;
@@ -67,7 +68,9 @@ pub fn boot() -> Result<(), &'static str> {
x86_64::instructions::interrupts::enable();
let physical_memory_offset = VirtAddr::new(*memmap::PHYSICAL_MEMORY_OFFSET);
let l4_table = unsafe { memory::init(physical_memory_offset) };
let mut l4_table = unsafe { memory::init(physical_memory_offset) };
init_heap(&mut l4_table, &mut frame_allocator);
Ok(())
}