Update allocator code for x86_64 v0.11.0

This commit is contained in:
Philipp Oppermann
2020-05-20 14:30:48 +02:00
parent 7a5d91cb96
commit 44ab90f92d

View File

@@ -31,7 +31,7 @@ pub fn init_heap(
.allocate_frame()
.ok_or(MapToError::FrameAllocationFailed)?;
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 {