mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Update allocator code for x86_64 v0.11.0
This commit is contained in:
@@ -31,7 +31,7 @@ pub fn init_heap(
|
|||||||
.allocate_frame()
|
.allocate_frame()
|
||||||
.ok_or(MapToError::FrameAllocationFailed)?;
|
.ok_or(MapToError::FrameAllocationFailed)?;
|
||||||
let flags = PageTableFlags::PRESENT | PageTableFlags::WRITABLE;
|
let flags = PageTableFlags::PRESENT | PageTableFlags::WRITABLE;
|
||||||
mapper.map_to(page, frame, flags, frame_allocator)?.flush();
|
unsafe { mapper.map_to(page, frame, flags, frame_allocator)?.flush() };
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|||||||
Reference in New Issue
Block a user