Interrupts Tutorial: Difference between revisions

[unchecked revision][unchecked revision]
m (Reverted edits by Klakap (talk) to last revision by Xcrafter40)
Line 13:
};
 
struct IDT_entry IDT[286256];
</source>
Now, we need to remap the PIC (Programmable Interrupt Controller) and fill the IDT with the correct values.
Line 181:
/* fill the IDT descriptor */
idt_address = (unsigned long)IDT ;
idt_ptr[0] = (sizeof (struct IDT_entry) * 286256) + ((idt_address & 0xffff) << 16);
idt_ptr[1] = idt_address >> 16 ;
 
Anonymous user