Struct rstubs::arch::int::idt::InterruptStack

source ·
#[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

source§

fn clone(&self) -> InterruptStack

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for InterruptStack

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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 T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.