[refactor] Organize INT

This commit is contained in:
2026-06-05 18:29:11 +08:00
Unverified
parent 7c66610c13
commit da03b301fb
17 changed files with 79 additions and 59 deletions
+2 -2
View File
@@ -47,13 +47,13 @@ void idt_init(void) {
serial_write("IDT: initializing 256 entries\n");
// Clear IDT
for (int i = 0; i < 256; i++) {
for (SSINT32 i = 0; i < 256; i++) {
g_idt[i] = {0};
g_handlers[i] = NULL;
}
// Install all 256 ISR stubs
for (int i = 0; i < 256; i++) {
for (SSINT32 i = 0; i < 256; i++) {
idt_set_entry(i, (UINT64)isr_stub_table[i]);
}