rustubs::arch::x86_64

Module interrupt

Source

Modulesยง

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
  • initialize the idt and pic_8259
  • 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() disables all interrupts and returns the previous state
  • trap_gate ๐Ÿ”’