better api

This commit is contained in:
nub31
2025-09-03 19:22:53 +02:00
parent b7bbccca73
commit bb923621f9
12 changed files with 112 additions and 109 deletions

View File

@@ -1,5 +1,5 @@
#include "exceptions.h"
#include "arch.h"
#include "../panic.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);
arch_panic("An unhandled exception occurred");
panic("An unhandled exception occurred");
}