pub enum Satp {
Bare,
Sv39 {
asid: u16,
root: PAddr,
},
Sv48 {
asid: u16,
root: PAddr,
},
Sv57 {
asid: u16,
root: PAddr,
},
}
Expand description
The Supervisor Address Translation and Protection (satp
) register controls supervisor-mode address
translation and protection. It contains the physical address of the root page table, plus an associated Address
Space Identified (ASID), which allows translation fences on an per-address-space basis.
It also specifies a mode, which dictates how addresses are translated. Available modes are Bare
, Sv39
,
Sv48
, and Sv57
.
Variants§
Implementations§
Trait Implementations§
impl Copy for Satp
impl Eq for Satp
impl StructuralPartialEq for Satp
Auto Trait Implementations§
impl Freeze for Satp
impl RefUnwindSafe for Satp
impl Send for Satp
impl Sync for Satp
impl Unpin for Satp
impl UnwindSafe for Satp
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