Skip to content

Commit 2c70f6a

Browse files
committed
Disable OffsetPageTable on non-64 bit architectures
1 parent fb9e04c commit 2c70f6a

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/structures/paging/mapper/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//! Abstractions for reading and modifying the mapping of pages.
22
33
pub use self::mapped_page_table::{MappedPageTable, PhysToVirt};
4+
#[cfg(pointer_width = "64")]
45
pub use self::offset_page_table::OffsetPageTable;
56
#[cfg(feature = "instructions")]
67
pub use self::recursive_page_table::RecursivePageTable;

src/structures/paging/mapper/offset_page_table.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![cfg(pointer_width = "64")]
2+
13
use crate::structures::paging::{
24
frame::PhysFrame, mapper::*, page_table::PageTable, Page, PageTableFlags,
35
};

src/structures/paging/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub use self::frame_alloc::UnusedPhysFrame;
88
pub use self::frame_alloc::{FrameAllocator, FrameDeallocator};
99
#[doc(no_inline)]
1010
pub use self::mapper::MappedPageTable;
11+
#[cfg(pointer_width = "64")]
1112
#[doc(no_inline)]
1213
pub use self::mapper::OffsetPageTable;
1314
#[cfg(feature = "instructions")]

0 commit comments

Comments
 (0)