#[repr(C)]pub struct InterruptStack {
pub ip: u32,
pub cs: u32,
pub flags: Flags,
pub sp: u32,
pub ss: u32,
}
Expand description
Represents the interrupt stack frame pushed by the CPU on interrupt or exception entry.
Fields§
§ip: u32
This value points to the instruction that should be executed when the interrupt
handler returns. For most interrupts, this value points to the instruction immediately
following the last executed instruction. However, for some exceptions (e.g., page faults),
this value points to the faulting instruction, so that the instruction is restarted on
return. See the documentation of the InterruptDescriptorTable
fields for more details.
cs: u32
The code segment selector, padded with zeros.
flags: Flags
The flags register before the interrupt handler was invoked.
sp: u32
The stack pointer at the time of the interrupt.
ss: u32
The stack segment descriptor at the time of the interrupt (often zero in 64-bit mode).
Trait Implementations§
source§impl Clone for InterruptStack
impl Clone for InterruptStack
source§fn clone(&self) -> InterruptStack
fn clone(&self) -> InterruptStack
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for InterruptStack
impl RefUnwindSafe for InterruptStack
impl Send for InterruptStack
impl Sync for InterruptStack
impl Unpin for InterruptStack
impl UnwindSafe for InterruptStack
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
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)