Merge branch 'post-10' into post-11

This commit is contained in:
Philipp Oppermann
2020-05-20 14:30:53 +02:00
4 changed files with 22 additions and 14 deletions

View File

@@ -35,7 +35,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 {