totally didn't import an allocator...
This commit is contained in:
+4
-1
@@ -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(())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user