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:
Matheus
2022-07-27 00:39:55 -03:00
parent 4ea2880817
commit f1d3126990
11 changed files with 564 additions and 21 deletions
+5 -1
View File
@@ -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);
}