Skip to content

Commit 5d8fdda

Browse files
committed
refactor(mapper): move offset_page_table into mapped_page_table
1 parent 15f1b06 commit 5d8fdda

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/structures/paging/mapper/mapped_page_table/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
mod offset_page_table;
2+
3+
#[cfg(target_pointer_width = "64")]
4+
pub use self::offset_page_table::{OffsetPageTable, PhysOffset};
15
use crate::structures::paging::{
26
mapper::*,
37
page::AddressNotAligned,

src/structures/paging/mapper/offset_page_table.rs renamed to src/structures/paging/mapper/mapped_page_table/offset_page_table.rs

File renamed without changes.

src/structures/paging/mapper/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
pub use self::mapped_page_table::{MappedPageTable, PageTableFrameMapping};
44
#[cfg(target_pointer_width = "64")]
5-
pub use self::offset_page_table::{OffsetPageTable, PhysOffset};
5+
pub use self::mapped_page_table::{OffsetPageTable, PhysOffset};
66
#[cfg(all(feature = "instructions", target_arch = "x86_64"))]
77
pub use self::recursive_page_table::{InvalidPageTable, RecursivePageTable};
88

@@ -15,7 +15,6 @@ use crate::structures::paging::{
1515
use crate::{PhysAddr, VirtAddr};
1616

1717
mod mapped_page_table;
18-
mod offset_page_table;
1918
#[cfg(all(feature = "instructions", target_arch = "x86_64"))]
2019
mod recursive_page_table;
2120

0 commit comments

Comments
 (0)