Module interrupt

Module interrupt 

Source

Modulesยง

idt ๐Ÿ”’
pic_8259
pit
plugbox
Registrar of IRQ handling routines

Functionsยง

handle_exception ๐Ÿ”’
handles exception/faults (nr < 32);
handle_irq ๐Ÿ”’ โš 
handle_irq assumes the interrupt is disabled when called. this will also make sure interrupt is disabled when it returns
init
initialize the idt and pic_8259
interrupt_disable
interrupt_enable
irq_restore
irq_restore only re-enable irq if was_enabled==true. it will not disable irq regardless the was_enabled value. This function should only be called to restore irq based on previous irq_save();
irq_save
irq_save() disables all interrupts and returns the previous state
trap_gate ๐Ÿ”’