fix: no more random reboot
This commit is contained in:
@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user