|
1 | 1 | //! Abstractions for reading and modifying the mapping of pages. |
2 | 2 |
|
3 | 3 | pub use self::mapped_page_table::{MappedPageTable, PhysToVirt}; |
4 | | -#[cfg(pointer_width = "64")] |
| 4 | +#[cfg(target_pointer_width = "64")] |
5 | 5 | pub use self::offset_page_table::OffsetPageTable; |
6 | 6 | #[cfg(feature = "instructions")] |
7 | 7 | pub use self::recursive_page_table::RecursivePageTable; |
@@ -127,12 +127,12 @@ pub trait Mapper<S: PageSize> { |
127 | 127 | /// Create a USER_ACCESSIBLE mapping: |
128 | 128 | /// |
129 | 129 | /// ``` |
130 | | - /// # #[cfg(pointer_width = "64")] |
| 130 | + /// # #[cfg(feature = "instructions")] |
131 | 131 | /// # use x86_64::structures::paging::{ |
132 | 132 | /// # Mapper, Page, PhysFrame, FrameAllocator, |
133 | 133 | /// # Size4KiB, OffsetPageTable, page_table::PageTableFlags |
134 | 134 | /// # }; |
135 | | - /// # #[cfg(pointer_width = "64")] |
| 135 | + /// # #[cfg(feature = "instructions")] |
136 | 136 | /// # unsafe fn test(mapper: &mut OffsetPageTable, frame_allocator: &mut impl FrameAllocator<Size4KiB>, |
137 | 137 | /// # page: Page<Size4KiB>, frame: PhysFrame) { |
138 | 138 | /// mapper |
@@ -214,12 +214,12 @@ pub trait Mapper<S: PageSize> { |
214 | 214 | /// the top hierarchy only with USER_ACCESSIBLE: |
215 | 215 | /// |
216 | 216 | /// ``` |
217 | | - /// # #[cfg(pointer_width = "64")] |
| 217 | + /// # #[cfg(feature = "instructions")] |
218 | 218 | /// # use x86_64::structures::paging::{ |
219 | 219 | /// # Mapper, PhysFrame, Page, FrameAllocator, |
220 | 220 | /// # Size4KiB, OffsetPageTable, page_table::PageTableFlags |
221 | 221 | /// # }; |
222 | | - /// # #[cfg(pointer_width = "64")] |
| 222 | + /// # #[cfg(feature = "instructions")] |
223 | 223 | /// # unsafe fn test(mapper: &mut OffsetPageTable, frame_allocator: &mut impl FrameAllocator<Size4KiB>, |
224 | 224 | /// # page: Page<Size4KiB>, frame: PhysFrame) { |
225 | 225 | /// mapper |
|
0 commit comments