mm: vmmcache -> mm_cache

This commit is contained in:
Matheus
2026-07-01 12:22:11 -03:00
parent 4d1caa6ede
commit d890eb5fb2
14 changed files with 81 additions and 82 deletions
+2 -2
View File
@@ -5,7 +5,7 @@
#include <arch/mmu.h>
#include <mutex.h>
#include <util.h>
#include <kernel/vmmcache.h>
#include <kernel/mm.h>
#include <kernel/init.h>
uintptr_t hhdm_base;
@@ -191,7 +191,7 @@ void *mm_alloc_page(int section) {
MUTEX_RELEASE(&free_list_mutex);
if (cache_page && vmmcache_takepage(page) == EAGAIN) {
if (cache_page && mm_cache_take_page(page) == EAGAIN) {
// someone already got the page from the cache between us holding it and taking it
mm_release_page(mm_get_page_address(page));
page = NULL;