Initializes and holds the IDT for the kernel.
More...
#include <stdint.h>
Go to the source code of this file.
|
| struct | __attribute__ ((packed)) idt_entry |
| | Entry for the ist holding information about the interrupt.
|
| void | exception_handler (struct interrupt_frame *frame) |
| | Prints information about an exception.
|
| void | init_idt (void) |
| | Initializes the IDT and loads it.
|
| void | idt_set_gate (int vector, uint64_t handler, uint16_t selector, uint8_t ist, uint8_t type_attr) |
| | Sets a gate (entry) for the idt.
|
|
| const char * | idt_exception_table [] |
| | List of exceptions as strings.
|
|
uint64_t | isr_stub_table [48] |
Initializes and holds the IDT for the kernel.
- Author
- Matheus Boscariol
- Since
- 18/11/2026
- Copyright
- (c) 2026 Matheus Boscariol. Licensed under GNU AGPL-3.0.
Definition in file idt.h.
◆ __attribute__()
| struct __attribute__ |
( |
(packed) | | ) |
|
Entry for the ist holding information about the interrupt.
The idtr register holding information about the idt.
The size of the idt
The base address of the idt
Definition at line 22 of file idt.h.
◆ exception_handler()
Prints information about an exception.
- Parameters
-
| frame | The frame that caused the exception |
Definition at line 63 of file idt.c.
◆ idt_set_gate()
| void idt_set_gate |
( |
int | vector, |
|
|
uint64_t | handler, |
|
|
uint16_t | selector, |
|
|
uint8_t | ist, |
|
|
uint8_t | type_attr ) |
Sets a gate (entry) for the idt.
- Parameters
-
| vector | The exception vector |
| handler | The address of the handler |
| selector | The GDT selector |
| ist | The ist used (0 = none, 1-7) |
| type_attr | The type attribute |
Definition at line 188 of file idt.c.
◆ init_idt()
Initializes the IDT and loads it.
Definition at line 172 of file idt.c.
◆ idt_exception_table
| const char* idt_exception_table[] |
|
extern |
List of exceptions as strings.
Definition at line 24 of file idt.c.