fix: memory is now working completely (size issue)

fix: reboot with invalid opcode
This commit is contained in:
2025-04-17 15:09:22 +02:00
parent 5e561bfa15
commit 2e09db2dd1
6 changed files with 36 additions and 23 deletions

View File

@ -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++;