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:
parent
a949055bce
commit
9869d1022a
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue