mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-02 07:28:21 +00:00
Add a WIP VMM
As of now the VMM (pretty much a doubly linked list of regions) supports allocating and demand paging. still no deallocation though so if you allocate something you can't free it yet :')
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include <arch/isr.h>
|
||||
#include <arch/panic.h>
|
||||
#include <kernel/vmm.h>
|
||||
|
||||
void isr_general(arch_regsnoerror *reg){
|
||||
_panic("Unhandled interrupt", 0);
|
||||
@@ -11,6 +12,9 @@ void isr_except(arch_regserror *reg){
|
||||
asm("hlt;");
|
||||
}
|
||||
|
||||
void isr_pagefault(void*){
|
||||
void isr_pagefault(arch_regserror *reg){
|
||||
|
||||
if(!vmm_dealwithrequest(reg->cr2))
|
||||
_panic("Page fault!\n", 0);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user