Module interrupt
rustubs
0.2.0
Module interrupt
Module Items
Modules
Functions
In rustubs::
arch::
x86_
64
rustubs
::
arch
::
x86_64
Module
interrupt
Copy item path
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
๐