Panic and interrupts

Added a basic kernel panic function and interrupt support for x86_64 (mostly for exception handling)
This commit is contained in:
Matheus
2022-07-22 00:34:44 -03:00
parent d13f17b509
commit cae7428ed0
9 changed files with 236 additions and 2 deletions
+16
View File
@@ -0,0 +1,16 @@
#include <arch/isr.h>
#include <arch/panic.h>
void isr_general(void*){
_panic("Unhandled interrupt");
asm("hlt");
}
void isr_except(void*){
_panic("CPU Exception");
asm("hlt;");
}
void isr_pagefault(void*){
}