fix: no more random reboot

This commit is contained in:
2024-10-08 23:56:34 +02:00
parent 339224f705
commit 599de25eec
7 changed files with 85 additions and 5 deletions

View File

@ -4,6 +4,7 @@
#include "utils.h"
#include <stdint.h>
#define NTMFDP 0
const char *faults[] = {
"division by zero",
@ -46,3 +47,12 @@ void exception_handler(void)
}
kprintf(KERN_ERR "interrupt triggered with no matching code\n");
}
void irq_handler(void)
{
int8_t index = -1;
__asm__ volatile("movb %%bl, %0" ::"m"(index));
pic_send_eoi(NTMFDP);
kpanic("cramptés\n");
}