marcel_os

Module interrupts

Source

Enums§

  • Enum representing the interrupt indices corresponding to the PIC offsets. These are used to handle specific interrupt vectors, such as Timer and Keyboard interrupts.

Constants§

  • The offset for the first PIC (Programmable Interrupt Controller). This is where the interrupts from the first PIC start.
  • The offset for the second PIC, which handles interrupts 40-47.

Statics§

  • A spin-locked instance of the chained PICs with the defined offsets. This is used for managing the interrupts from both PICs.

Functions§

  • Initializes the Interrupt Descriptor Table (IDT) and loads it into the CPU’s IDT register. The IDT contains the handlers for various exceptions and interrupts in the system.