mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
More debugging to _panic()
Added a stack trace and a register dump
This commit is contained in:
@@ -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*){
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user