|
ginnOS
The reference: libc, the libraries and the kernel
|
Functions | |
| struct idt_entry | __attribute__ ((packed)) |
| void | idt_load (uint32_t idt_ptr_addr) |
| defined in idt_load.asm, loads the IDT descriptor into the IDTR register. | |
| void | idt_set_gate (int vector, void *base, uint16_t segment, uint8_t flags) |
| configure a single IDT gate entry. | |
| void | idt_enable_gate (int vector) |
| enable an IDT gate by setting its present bit. | |
| void | idt_disable_gate (int vector) |
| disable an IDT gate by clearing its present bit. | |
| void | idt_initialize (void) |
| initialize the Interrupt Descriptor Table (IDT) and load it into the IDTR register. | |
| void | idt_load_core (void) |
| load the IDT into the IDTR of the core that runs the call. | |
Variables | |
| uint16_t | base_low |
| uint16_t | segment_selector |
| uint8_t | reserved |
| uint8_t | flags |
| uint16_t | base_high |
| uint16_t | limit |
| uint32_t | base |
| struct idt_entry __attribute__ | ( | (packed) | ) |
|
extern |
defined in idt_load.asm, loads the IDT descriptor into the IDTR register.
configure a single IDT gate entry.
| vector | interrupt vector number (0–255). |
| base | pointer to the interrupt service routine. |
| segment | code segment selector for the ISR. |
| flags | gate type and attribute flags (see idt_flags). |
| void idt_enable_gate | ( | int | vector | ) |
enable an IDT gate by setting its present bit.
| vector | interrupt vector number (0–255). |
| void idt_disable_gate | ( | int | vector | ) |
disable an IDT gate by clearing its present bit.
| vector | interrupt vector number (0–255). |
| void idt_initialize | ( | void | ) |
initialize the Interrupt Descriptor Table (IDT) and load it into the IDTR register.
| void idt_load_core | ( | void | ) |
load the IDT into the IDTR of the core that runs the call.
idt_initialize() does it for the boot core; each other core calls this when it starts.
| uint16_t base_low |
| uint16_t segment_selector |
| uint8_t reserved |
| uint8_t flags |
| uint16_t base_high |
| uint16_t limit |
| uint32_t base |