fix: no more looping on some weird input
This commit is contained in:
@ -53,9 +53,12 @@ void irq_handler(void)
|
||||
int8_t index = -1;
|
||||
__asm__ volatile("movb %%bl, %0" ::"m"(index));
|
||||
|
||||
if (index == 0) {
|
||||
pic_send_eoi(index);
|
||||
pic_send_eoi(index);
|
||||
if (index == -1) {
|
||||
kprintf(KERN_ERR "interrupt triggered without a code\n");
|
||||
return;
|
||||
}
|
||||
if (index == 0)
|
||||
return;
|
||||
kpanic("%d\n", index);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user