still fighting an issue

This commit is contained in:
2026-07-03 22:25:24 -05:00
parent 48df965268
commit ab5a1ecb6b
5 changed files with 18 additions and 22 deletions

View File

@@ -3,6 +3,7 @@
#include <lib/print.h>
#include "syscall.h"
#include "common.h"
#include <drivers/pic/pic.h>
#include <drivers/ps2/ps2.h>
@@ -110,7 +111,14 @@ void common_interrupt_handler(registers *args) {
case 13:
case 15:
case 16:
kprintf("CPU Error: %s, %d\n", err_messages[args->int_no], args->error_code);
kprintf("CPU Error: [%d]%s\n", args->int_no, err_messages[args->int_no]);
kprintf("Error Code: 0x%x\n", args->error_code);
kprintf("Instruction Pointer: 0x%x\n", args->eip);
kprintf("Stack Pointer: 0x%x\n", args->useresp);
kprintf("EAX: 0x%x\n", args->eax);
kprintf("EFLAGS: 0x%x\n", args->eflags);
kprintf("cr3: 0x%x\n", fetch_cr3());
while(1);
break;
case 14:{
uint32_t faulting_address;