#[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 more