...
This commit is contained in:
@@ -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();
|
||||
}
|
||||
Reference in New Issue
Block a user