#[repr(C)]pub struct TrapFrame {
pub x: [u64; 31],
pub elr: u64,
pub spsr: u64,
pub __pad: u64,
}Expand description
Saved registers when a trap (exception) occurs.
Fields§
§x: [u64; 31]General-purpose registers (X0..X30).
elr: u64Exception Link Register (ELR_EL1).
spsr: u64Saved Process Status Register (SPSR_EL1).
__pad: u64make sure the size is 16 bytes aligned
Implementations§
Trait Implementations§
impl Copy for TrapFrame
Auto Trait Implementations§
impl Freeze for TrapFrame
impl RefUnwindSafe for TrapFrame
impl Send for TrapFrame
impl Sync for TrapFrame
impl Unpin for TrapFrame
impl UnsafeUnpin for TrapFrame
impl UnwindSafe for TrapFrame
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