pub struct Sscratch(pub VAddr);
Expand description
A dedicated register for the supervisor to hold whatever data it would like to. Generally used to hold a pointer to a hart-local supervisor context - it can be swapped with a user register at the beginning of a trap handler to provide an initial working register.
Tuple Fields§
§0: VAddr
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sscratch
impl RefUnwindSafe for Sscratch
impl Send for Sscratch
impl Sync for Sscratch
impl Unpin for Sscratch
impl UnwindSafe for Sscratch
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