mm: refactor pmm -> page

This commit is contained in:
Matheus
2026-07-01 11:56:06 -03:00
parent 39e63c3e44
commit 6f8700e678
35 changed files with 226 additions and 226 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
#include <printf.h>
#include <logging.h>
#include <string.h>
#include <kernel/pmm.h>
#include <kernel/page.h>
#include <arch/mmu.h>
#include <kernel/init.h>
#include <logging.h>
@@ -31,7 +31,7 @@ static void *internalalloc(size_t n) {
#else
// TODO make more efficient. works for now
static void *internalalloc(size_t n) {
void *addr = pmm_alloc(n / PAGE_SIZE + 1, PMM_SECTION_DEFAULT);
void *addr = mm_alloc_pages(n / PAGE_SIZE + 1, MEMORY_SECTION_DEFAULT);
__assert(addr);
return MAKE_HHDM(addr);
}