|
LumaOS
v0.1.116
An experimental x86-64 OS
|
Initializes and holds the IDT for the kernel. More...
#include <arch/x86_64/idt.h>#include <arch/x86_64/irq.h>#include <kernel/kprintf.h>#include <kernel/log.h>#include <kernel/vars.h>#include <stdint.h>#include "mm/vmm.h"Go to the source code of this file.
Macros | |
| #define | MAX_DEPTH 16 |
Functions | |
| static void | hcf (void) |
| Halts the cpu. | |
| 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. | |
Variables | |
| const char * | idt_exception_table [] |
| List of exceptions as strings. | |
| struct idt_entry | idt [256] |
| struct idtr | _idtr |
Initializes and holds the IDT for the kernel.
Definition in file idt.c.
| void exception_handler | ( | struct interrupt_frame * | frame | ) |
| void idt_set_gate | ( | int | vector, |
| uint64_t | handler, | ||
| uint16_t | selector, | ||
| uint8_t | ist, | ||
| uint8_t | type_attr ) |
| void init_idt | ( | void | ) |