Set the stack index of the double fault IDT entry

master
Philipp Oppermann 8 years ago
parent aa8028cf6c
commit 7f6576c9dc

@ -10,7 +10,10 @@ lazy_static! {
static ref IDT: Idt = {
let mut idt = Idt::new();
idt.breakpoint.set_handler_fn(breakpoint_handler);
idt.double_fault.set_handler_fn(double_fault_handler);
unsafe {
idt.double_fault.set_handler_fn(double_fault_handler)
.set_stack_index(DOUBLE_FAULT_IST_INDEX as u16);
}
idt
};
}

Loading…
Cancel
Save