fix: memory is now working completely (size issue)
fix: reboot with invalid opcode
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
#include "interrupts.h"
|
||||
#include "kpanic.h"
|
||||
#include "kprintf.h"
|
||||
#include "power.h"
|
||||
#include "utils.h"
|
||||
|
||||
#include <stddef.h>
|
||||
@ -35,6 +36,8 @@ void isr_handler(struct registers *regs)
|
||||
{
|
||||
uint8_t i = 0;
|
||||
while (i < ARRAY_SIZE(faults)) {
|
||||
if (i == 6)
|
||||
reboot();
|
||||
if (i == regs->int_no)
|
||||
kpanic("interrupt: %s\n", faults[i]);
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user