This commit is contained in:
nub31
2025-09-03 18:31:10 +02:00
parent 0583c8c1a3
commit f05e7c9e64
31 changed files with 164 additions and 163 deletions

View File

@@ -1,5 +1,5 @@
#include "exceptions.h"
#include "../../api.h"
#include "arch.h"
static const char* exception_messages[32] = {
"divide by zero",
@@ -39,5 +39,5 @@ static const char* exception_messages[32] = {
void handle_exception(const isr_frame_t* frame)
{
printf("exception[%d]: %s, error code: %d\n", frame->int_no, exception_messages[frame->int_no], frame->err_code);
panic();
arch_panic("An unhandled exception occurred");
}