#[repr(C)]pub struct TrapFrame {
pub regs: [u32; 32],
pub cp0_status: u32,
pub hi: u32,
pub lo: u32,
pub cp0_badvaddr: u32,
pub cp0_cause: u32,
pub cp0_epc: u32,
}Expand description
Things need to be stored in the trapframe.
Fields§
§regs: [u32; 32]All the regular registers.
cp0_status: u32The Status register in CP0.
hi: u32The HI register.
lo: u32The LO register.
cp0_badvaddr: u32The BadAddr register in CP0.
cp0_cause: u32The Cause register in CP0.
cp0_epc: u32The EPC register in CP0.
Implementations§
Source§impl TrapFrame
impl TrapFrame
Sourcepub const fn const_construct() -> Self
pub const fn const_construct() -> Self
The default value of the registers.
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 UnwindSafe for TrapFrame
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut u8)
unsafe fn clone_to_uninit(&self, dst: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)