Function hermit::kernel::idt::set_gate [−][src]
pub fn set_gate(index: u8, handler: usize, ist_index: u8)
Expand description
Set an entry in the IDT.
Arguments
index
- 8-bit index of the interrupt gate to set.handler
- Handler function to call for this interrupt/exception.ist_index
- Index of the Interrupt Stack Table (IST) to switch to. A zero value means that the stack won’t be switched, a value of 1 refers to the first IST entry, etc.