feat: add interrupts handling, PIC and PIT

This commit is contained in:
2026-10-20 15:20:26 +02:00
parent 8da0918108
commit 811ce51c2c
10 changed files with 428 additions and 12 deletions
+2 -2
View File
@@ -14,11 +14,11 @@ extern "C" void exception_handler(void) {
asm volatile("cli; hlt");
}
extern "C" void* isrStubTable[32];
extern "C" void* isrStubTable[256];
idt::idt()
: entries() {
for (u8 vector = 0; vector < 32; ++vector) {
for (u32 vector = 0; vector < 256; ++vector) {
entries[vector] = idt_entry{
static_cast<u16>(reinterpret_cast<u64>(isrStubTable[vector]) & 0xFFFF),
gdt::KERNEL_CS,