cpu_disable_intr();
vector = IDT_OFFSET + intr;
- setidt(vector, ioapic_intr[intr], SDT_SYS386IGT,
- SEL_KPL, GSEL(GCODE_SEL, SEL_KPL));
/*
* Now reprogram the vector in the IO APIC. In order to avoid
machintr_intr_disable(intr);
vector = IDT_OFFSET + intr;
- setidt(vector, ioapic_intr[intr], SDT_SYS386IGT, SEL_KPL,
- GSEL(GCODE_SEL, SEL_KPL));
/*
* In order to avoid losing an EOI for a level interrupt, which
ef = read_eflags();
cpu_disable_intr();
- setidt(IDT_OFFSET + intr, icu_intr[intr], SDT_SYS386IGT,
- SEL_KPL, GSEL(GCODE_SEL, SEL_KPL));
machintr_intr_enable(intr);
write_eflags(ef);
cpu_disable_intr();
machintr_intr_disable(intr);
- setidt(IDT_OFFSET + intr, icu_intr[intr], SDT_SYS386IGT,
- SEL_KPL, GSEL(GCODE_SEL, SEL_KPL));
write_eflags(ef);
}