Interrupt Dispatch and Handling (for first common vectors)

This commit is contained in:
2025-12-22 21:04:45 +01:00
parent d0b4da0596
commit 42fc169e10
6 changed files with 30 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
#include "gdt.h"
#include <stdint.h>
#include "../io/serial.h"
// Descriptors are 8-byte wide (64bits)
// So the selectors will be (in bytes): 0x0, 0x8, 0x10, 0x18, etc..
@@ -76,4 +77,6 @@ void gdt_init()
// Load the GDT we created, flush the old one
gdt_load();
gdt_flush();
serial_kputs("kernel: gdt: Initialized GDT!\n");
}