pub struct Sstatus;
Implementations§
Source§impl Sstatus
impl Sstatus
pub fn enable_interrupts()
pub fn disable_interrupts()
Sourcepub fn enable_user_memory_access()
pub fn enable_user_memory_access()
Set the SUM
bit of sstatus
, allowing kernel code to access user-accessible memory.
Sourcepub fn disable_user_memory_access()
pub fn disable_user_memory_access()
Clear the SUM
bit of sstatus
, denying kernel code access to user-accessible memory.
Kernel code accessing user-accessible memory will fault.
Auto Trait Implementations§
impl Freeze for Sstatus
impl RefUnwindSafe for Sstatus
impl Send for Sstatus
impl Sync for Sstatus
impl Unpin for Sstatus
impl UnwindSafe for Sstatus
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