pub enum PagingMode {
Disabled,
Bits32,
Pae,
Level4,
Level5,
}Expand description
Which page-table format is active.
Variants§
Disabled
CR0.PG = 0: linear address = physical address.
Bits32
Classic 2-level 32-bit paging.
Pae
3-level PAE paging.
Level4
4-level paging (IA-32e).
Level5
5-level paging (CR4.LA57).
Implementations§
Source§impl PagingMode
impl PagingMode
Sourcepub fn of(s: &CpuState) -> PagingMode
pub fn of(s: &CpuState) -> PagingMode
Works out the paging mode from control registers.
Trait Implementations§
Source§impl Clone for PagingMode
impl Clone for PagingMode
impl Copy for PagingMode
Source§impl Debug for PagingMode
impl Debug for PagingMode
impl Eq for PagingMode
Source§impl PartialEq for PagingMode
impl PartialEq for PagingMode
impl StructuralPartialEq for PagingMode
Auto Trait Implementations§
impl Freeze for PagingMode
impl RefUnwindSafe for PagingMode
impl Send for PagingMode
impl Sync for PagingMode
impl Unpin for PagingMode
impl UnsafeUnpin for PagingMode
impl UnwindSafe for PagingMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more