Mask all interrupts on the master PIC except the timer.

This prevents us from getting a GP fault when an unhandled interrupt
arises.
This commit is contained in:
Drew Galbraith 2023-05-29 22:07:47 -07:00
parent a949055bce
commit 9869d1022a
1 changed files with 3 additions and 0 deletions

View File

@ -129,6 +129,9 @@ void EnablePic() {
outb(PIC1_DATA, 0x20); // PIC1 offset.
outb(PIC1_DATA, 0x4);
outb(PIC1_DATA, 0x1);
// Mask all except the timer.
outb(PIC1_DATA, 0xE);
}
void InitIdt() {