fixes issue with exceptions (im dumb)

This commit is contained in:
2025-06-01 20:24:05 -04:00
parent 89c02d6a93
commit ecc91fdc7d
3 changed files with 15 additions and 3 deletions

View File

@ -1,5 +1,6 @@
#ifdef __TESTING__
#include <kernel/_kernel.h>
#include <stdio.h>
#endif
#include <kernel/x86/io.h>
#include <kernel/x86/pic.h>
@ -70,6 +71,8 @@ void IRQ_set_mask(uint8_t IRQline) // Masked IRQlines are ignored by the PIC, ma
port = PIC2_DATA;
IRQline -= 8;
}
printf("%x %x\n", port, IRQline);
value = inb(port) | (1 << IRQline);
outb(port, value);