Add missing import

This commit is contained in:
Philipp Oppermann
2019-06-26 13:15:10 +02:00
parent 029d77ef21
commit acada272c5

View File

@@ -398,6 +398,13 @@ If we tried to use this heap region now, a page fault would occur since the virt
```rust ```rust
// in src/allocator.rs // in src/allocator.rs
use x86_64::{
structures::paging::{
mapper::MapToError, FrameAllocator, Mapper, Page, PageTableFlags, Size4KiB,
},
VirtAddr,
};
pub fn init_heap( pub fn init_heap(
mapper: &mut impl Mapper<Size4KiB>, mapper: &mut impl Mapper<Size4KiB>,
frame_allocator: &mut impl FrameAllocator<Size4KiB>, frame_allocator: &mut impl FrameAllocator<Size4KiB>,