Update Heap Allocation post for x86_64 v0.11.0

This commit is contained in:
Philipp Oppermann
2020-05-20 14:46:14 +02:00
parent 1a5d91be4b
commit fbaa641841

View File

@@ -423,7 +423,9 @@ 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()
};
}
Ok(())