diff --git a/src/memory/paging/mapper.rs b/src/memory/paging/mapper.rs index ef949955..68d34113 100644 --- a/src/memory/paging/mapper.rs +++ b/src/memory/paging/mapper.rs @@ -9,7 +9,7 @@ use super::{VirtualAddress, PhysicalAddress, Page, ENTRY_COUNT}; use super::entry::*; -use super::table::{self, Table, Level4, Level1}; +use super::table::{self, Table, Level4}; use memory::{PAGE_SIZE, Frame, FrameAllocator}; use core::ptr::Unique; diff --git a/src/memory/paging/mod.rs b/src/memory/paging/mod.rs index 54c4ef1f..aedc9ec2 100644 --- a/src/memory/paging/mod.rs +++ b/src/memory/paging/mod.rs @@ -9,11 +9,9 @@ pub use self::entry::*; use memory::{PAGE_SIZE, Frame, FrameAllocator}; -use self::table::{Table, Level4}; use self::temporary_page::TemporaryPage; pub use self::mapper::Mapper; use core::ops::{Deref, DerefMut}; -use core::ptr::Unique; use multiboot2::BootInformation; mod entry; @@ -193,7 +191,6 @@ pub fn remap_the_kernel(allocator: &mut A, boot_info: &BootInformation) for section in elf_sections_tag.sections() { use multiboot2::ELF_SECTION_ALLOCATED; - use self::entry::WRITABLE; if !section.flags().contains(ELF_SECTION_ALLOCATED) { // section is not loaded to memory