fix: Fixed some issues regarding creating new page map levels

This commit is contained in:
Kevin Alavik 2025-05-08 19:22:40 +02:00
parent 442b26df09
commit 6488abfcba
No known key found for this signature in database
GPG key ID: 0570047215B43EBD
4 changed files with 13 additions and 3 deletions

View file

@ -3,6 +3,7 @@
#include "mm/pmm.h"
#include "mm/vma.h"
#include "mm/vmm.h"
#include "mm/liballoc/liballoc.h"
#include "mm/memop.h"
#include "rt.h"
#include "sched/sched.h"
@ -131,6 +132,11 @@ void kmain(void) {
asm("hlt");
}
char *a = kmalloc(1);
*a = 32;
log("Allocated 1 byte at 0x%.16llx\n", (uint64_t)a);
kfree(a);
pit_init(1000);
sched_init();
//user_init();