More debugging to _panic()

Added a stack trace and a register dump
This commit is contained in:
Matheus
2022-07-22 17:04:13 -03:00
parent cae7428ed0
commit 9e3ac64248
7 changed files with 63 additions and 13 deletions
+5 -5
View File
@@ -1,16 +1,16 @@
#include <arch/isr.h>
#include <arch/panic.h>
void isr_general(void*){
_panic("Unhandled interrupt");
void isr_general(arch_regsnoerror *reg){
_panic("Unhandled interrupt", 0);
asm("hlt");
}
void isr_except(void*){
_panic("CPU Exception");
void isr_except(arch_regserror *reg){
_panic("CPU Exception", reg);
asm("hlt;");
}
void isr_pagefault(void*){
}