Skip to content

Commit d4cab1e

Browse files
committed
style(x86_64/mm): move gated imports
1 parent 2f848c9 commit d4cab1e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/arch/x86_64/mm/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
pub(crate) mod paging;
22

33
use memory_addresses::arch::x86_64::{PhysAddr, VirtAddr};
4-
#[cfg(feature = "common-os")]
5-
use x86_64::structures::paging::{PageSize, Size4KiB as BasePageSize};
64

7-
#[cfg(feature = "common-os")]
8-
use crate::arch::mm::paging::{PageTableEntryFlags, PageTableEntryFlagsExt};
95
use crate::mm::{FrameAlloc, PageAlloc, PageRangeAllocator};
106

117
#[cfg(feature = "common-os")]
128
pub fn create_new_root_page_table() -> usize {
139
use free_list::PageLayout;
1410
use x86_64::registers::control::Cr3;
11+
use x86_64::structures::paging::{PageSize, Size4KiB as BasePageSize};
1512

13+
use crate::arch::mm::paging::{PageTableEntryFlags, PageTableEntryFlagsExt};
1614
use crate::mm::{FrameAlloc, PageBox, PageRangeAllocator};
1715

1816
let layout = PageLayout::from_size(BasePageSize::SIZE as usize).unwrap();

0 commit comments

Comments
 (0)