@@ -127,10 +127,12 @@ pub trait Mapper<S: PageSize> {
127
127
/// Create a USER_ACCESSIBLE mapping:
128
128
///
129
129
/// ```
130
+ /// # #[cfg(pointer_width = "64")]
130
131
/// # use x86_64::structures::paging::{
131
132
/// # Mapper, Page, PhysFrame, FrameAllocator,
132
133
/// # Size4KiB, OffsetPageTable, page_table::PageTableFlags
133
134
/// # };
135
+ /// # #[cfg(pointer_width = "64")]
134
136
/// # unsafe fn test(mapper: &mut OffsetPageTable, frame_allocator: &mut impl FrameAllocator<Size4KiB>,
135
137
/// # page: Page<Size4KiB>, frame: PhysFrame) {
136
138
/// mapper
@@ -212,10 +214,12 @@ pub trait Mapper<S: PageSize> {
212
214
/// the top hierarchy only with USER_ACCESSIBLE:
213
215
///
214
216
/// ```
217
+ /// # #[cfg(pointer_width = "64")]
215
218
/// # use x86_64::structures::paging::{
216
219
/// # Mapper, PhysFrame, Page, FrameAllocator,
217
220
/// # Size4KiB, OffsetPageTable, page_table::PageTableFlags
218
221
/// # };
222
+ /// # #[cfg(pointer_width = "64")]
219
223
/// # unsafe fn test(mapper: &mut OffsetPageTable, frame_allocator: &mut impl FrameAllocator<Size4KiB>,
220
224
/// # page: Page<Size4KiB>, frame: PhysFrame) {
221
225
/// mapper
0 commit comments