mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Remove unused imports
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
use super::{VirtualAddress, PhysicalAddress, Page, ENTRY_COUNT};
|
use super::{VirtualAddress, PhysicalAddress, Page, ENTRY_COUNT};
|
||||||
use super::entry::*;
|
use super::entry::*;
|
||||||
use super::table::{self, Table, Level4, Level1};
|
use super::table::{self, Table, Level4};
|
||||||
use memory::{PAGE_SIZE, Frame, FrameAllocator};
|
use memory::{PAGE_SIZE, Frame, FrameAllocator};
|
||||||
use core::ptr::Unique;
|
use core::ptr::Unique;
|
||||||
|
|
||||||
|
|||||||
@@ -9,11 +9,9 @@
|
|||||||
|
|
||||||
pub use self::entry::*;
|
pub use self::entry::*;
|
||||||
use memory::{PAGE_SIZE, Frame, FrameAllocator};
|
use memory::{PAGE_SIZE, Frame, FrameAllocator};
|
||||||
use self::table::{Table, Level4};
|
|
||||||
use self::temporary_page::TemporaryPage;
|
use self::temporary_page::TemporaryPage;
|
||||||
pub use self::mapper::Mapper;
|
pub use self::mapper::Mapper;
|
||||||
use core::ops::{Deref, DerefMut};
|
use core::ops::{Deref, DerefMut};
|
||||||
use core::ptr::Unique;
|
|
||||||
use multiboot2::BootInformation;
|
use multiboot2::BootInformation;
|
||||||
|
|
||||||
mod entry;
|
mod entry;
|
||||||
@@ -193,7 +191,6 @@ pub fn remap_the_kernel<A>(allocator: &mut A, boot_info: &BootInformation)
|
|||||||
|
|
||||||
for section in elf_sections_tag.sections() {
|
for section in elf_sections_tag.sections() {
|
||||||
use multiboot2::ELF_SECTION_ALLOCATED;
|
use multiboot2::ELF_SECTION_ALLOCATED;
|
||||||
use self::entry::WRITABLE;
|
|
||||||
|
|
||||||
if !section.flags().contains(ELF_SECTION_ALLOCATED) {
|
if !section.flags().contains(ELF_SECTION_ALLOCATED) {
|
||||||
// section is not loaded to memory
|
// section is not loaded to memory
|
||||||
|
|||||||
Reference in New Issue
Block a user