mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
Unify the arch_regs structs
I was doing something stupid and keeping a separate version for the cpu registers. oh well, I fixed it now
This commit is contained in:
@@ -2,17 +2,17 @@
|
||||
#include <arch/panic.h>
|
||||
#include <kernel/vmm.h>
|
||||
|
||||
void isr_general(arch_regsnoerror *reg){
|
||||
void isr_general(arch_regs *reg){
|
||||
_panic("Unhandled interrupt", 0);
|
||||
asm("hlt");
|
||||
}
|
||||
|
||||
void isr_except(arch_regserror *reg){
|
||||
void isr_except(arch_regs *reg){
|
||||
_panic("CPU Exception", reg);
|
||||
asm("hlt;");
|
||||
}
|
||||
|
||||
void isr_pagefault(arch_regserror *reg){
|
||||
void isr_pagefault(arch_regs *reg){
|
||||
|
||||
if(!vmm_dealwithrequest(reg->cr2))
|
||||
_panic("Page fault!\n", 0);
|
||||
|
||||
Reference in New Issue
Block a user