This commit is contained in:
nub31
2025-09-06 22:07:17 +02:00
parent 45a9023bab
commit 4f55956fee
32 changed files with 89 additions and 83 deletions

View File

@@ -1,5 +1,6 @@
#include "exceptions.h"
#include "../panic.h"
#include <printf.h>
static const char* exception_messages[32] = {
"divide by zero",
@@ -39,5 +40,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("An unhandled exception occurred");
panic();
}