13d92cf67a
This patch adds code to handle Interrupt Descriptor Table (IDT) initialization. The IDT is initialized with null descriptors therefore any interrupt at this point will cause a triple fault. The IDT initialization is part of x86 CPU initialization. Strictly speaking, there is no need to use attribute packed in struct intr_gate_desc however we use it for readability reasons. |
||
---|---|---|
.. | ||
gdt.c | ||
gdt.h | ||
helpers.h | ||
helpers.S | ||
idt.c | ||
idt.h | ||
Makefile.x86 | ||
mtarch.c | ||
mtarch.h |