#[repr(C)]pub struct ExceptionFrame { /* private fields */ }Expand description
Registers stacked (pushed onto the stack) during an exception.
Implementations§
Source§impl ExceptionFrame
impl ExceptionFrame
Sourcepub unsafe fn set_r0(&mut self, value: u32)
pub unsafe fn set_r0(&mut self, value: u32)
Sets the stacked value of (general purpose) register 0.
§Safety
This affects the r0 register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_r1(&mut self, value: u32)
pub unsafe fn set_r1(&mut self, value: u32)
Sets the stacked value of (general purpose) register 1.
§Safety
This affects the r1 register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_r2(&mut self, value: u32)
pub unsafe fn set_r2(&mut self, value: u32)
Sets the stacked value of (general purpose) register 2.
§Safety
This affects the r2 register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_r3(&mut self, value: u32)
pub unsafe fn set_r3(&mut self, value: u32)
Sets the stacked value of (general purpose) register 3.
§Safety
This affects the r3 register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_r12(&mut self, value: u32)
pub unsafe fn set_r12(&mut self, value: u32)
Sets the stacked value of (general purpose) register 12.
§Safety
This affects the r12 register of the preempted code, which must not rely on it getting
restored to its previous value.
Sourcepub unsafe fn set_lr(&mut self, value: u32)
pub unsafe fn set_lr(&mut self, value: u32)
Sets the stacked value of the Link Register.
§Safety
This affects the lr register of the preempted code, which must not rely on it getting
restored to its previous value.
Trait Implementations§
Source§impl Clone for ExceptionFrame
impl Clone for ExceptionFrame
Source§fn clone(&self) -> ExceptionFrame
fn clone(&self) -> ExceptionFrame
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more