src/kernel/interrupts/irq.c
void irq_install()
{
	irq_remap();
	idt_set_gate(32, (unsigned)irq0, 0x08, 0x8E);
	idt_set_gate(33, (unsigned)irq1, 0x08, 0x8E);
	idt_set_gate(34, (unsigned)irq2, 0x08, 0x8E);
	idt_set_gate(35, (unsigned)irq3, 0x08, 0x8E);
	idt_set_gate(36, (unsigned)irq4, 0x08, 0x8E);
	idt_set_gate(37, (unsigned)irq5, 0x08, 0x8E);
	idt_set_gate(38, (unsigned)irq6, 0x08, 0x8E);
	idt_set_gate(39, (unsigned)irq7, 0x08, 0x8E);
	idt_set_gate(40, (unsigned)irq8, 0x08, 0x8E);
	idt_set_gate(41, (unsigned)irq9, 0x08, 0x8E);
	idt_set_gate(42, (unsigned)irq10, 0x08, 0x8E);
	idt_set_gate(43, (unsigned)irq11, 0x08, 0x8E);
	idt_set_gate(44, (unsigned)irq12, 0x08, 0x8E);
	idt_set_gate(45, (unsigned)irq13, 0x08, 0x8E);
	idt_set_gate(46, (unsigned)irq14, 0x08, 0x8E);
	idt_set_gate(47, (unsigned)irq15, 0x08, 0x8E);
	info("Installed Interrupt Requests");
}
// Map ISRs to the correct entries in the IDT
Map ISRs to the correct entries in the IDT
Map ISRs to the correct entries in the IDT
void irq_install()
{
	irq_remap();
	idt_set_gate(32, (unsigned)irq0, 0x08, 0x8E);
	idt_set_gate(33, (unsigned)irq1, 0x08, 0x8E);
	idt_set_gate(34, (unsigned)irq2, 0x08, 0x8E);
	idt_set_gate(35, (unsigned)irq3, 0x08, 0x8E);
	idt_set_gate(36, (unsigned)irq4, 0x08, 0x8E);
	idt_set_gate(37, (unsigned)irq5, 0x08, 0x8E);
	idt_set_gate(38, (unsigned)irq6, 0x08, 0x8E);
	idt_set_gate(39, (unsigned)irq7, 0x08, 0x8E);
	idt_set_gate(40, (unsigned)irq8, 0x08, 0x8E);
	idt_set_gate(41, (unsigned)irq9, 0x08, 0x8E);
	idt_set_gate(42, (unsigned)irq10, 0x08, 0x8E);
	idt_set_gate(43, (unsigned)irq11, 0x08, 0x8E);
	idt_set_gate(44, (unsigned)irq12, 0x08, 0x8E);
	idt_set_gate(45, (unsigned)irq13, 0x08, 0x8E);
	idt_set_gate(46, (unsigned)irq14, 0x08, 0x8E);
	idt_set_gate(47, (unsigned)irq15, 0x08, 0x8E);
	info("Installed Interrupt Requests");
}
void irq_install ( ) { irq_remap ( ) ; idt_set_gate ( 32 , ( unsigned ) irq0 , 0x08 , 0x8E ) ; idt_set_gate ( 33 , ( unsigned ) irq1 , 0x08 , 0x8E ) ; idt_set_gate ( 34 , ( unsigned ) irq2 , 0x08 , 0x8E ) ; idt_set_gate ( 35 , ( unsigned ) irq3 , 0x08 , 0x8E ) ; idt_set_gate ( 36 , ( unsigned ) irq4 , 0x08 , 0x8E ) ; idt_set_gate ( 37 , ( unsigned ) irq5 , 0x08 , 0x8E ) ; idt_set_gate ( 38 , ( unsigned ) irq6 , 0x08 , 0x8E ) ; idt_set_gate ( 39 , ( unsigned ) irq7 , 0x08 , 0x8E ) ; idt_set_gate ( 40 , ( unsigned ) irq8 , 0x08 , 0x8E ) ; idt_set_gate ( 41 , ( unsigned ) irq9 , 0x08 , 0x8E ) ; idt_set_gate ( 42 , ( unsigned ) irq10 , 0x08 , 0x8E ) ; idt_set_gate ( 43 , ( unsigned ) irq11 , 0x08 , 0x8E ) ; idt_set_gate ( 44 , ( unsigned ) irq12 , 0x08 , 0x8E ) ; idt_set_gate ( 45 , ( unsigned ) irq13 , 0x08 , 0x8E ) ; idt_set_gate ( 46 , ( unsigned ) irq14 , 0x08 , 0x8E ) ; idt_set_gate ( 47 , ( unsigned ) irq15 , 0x08 , 0x8E ) ; info ( " " ) ; }
Map ISRs to the correct entries in the IDT
Map ISRs to the correct entries in the IDT