Fix a few issues

Panics in a few ISRs did not include registers. Removed a dot in panic string. Fixed an issue that would cause the system to page fault inside the vmm_dealwithrequest() function.
This commit is contained in:
Matheus
2022-08-04 19:28:20 -03:00
parent 947f4b4a06
commit 28710b6aa8
3 changed files with 7 additions and 4 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
#include <kernel/vmm.h>
void isr_general(arch_regs *reg){
_panic("Unhandled interrupt", 0);
_panic("Unhandled interrupt", reg);
asm("hlt");
}
@@ -15,6 +15,6 @@ void isr_except(arch_regs *reg){
void isr_pagefault(arch_regs *reg){
if(!vmm_dealwithrequest(reg->cr2))
_panic("Page fault!\n", 0);
_panic("Page fault!", reg);
}