refactor: use a more decent physical memory map
[lunaix-os.git] / lunaix-os / kernel / mm / cake.c
index 64343031c9a25478857e96f63f6c83b9dd6168e7..0e8f3341c5b8a95a23e47ba7925015aa1d0ab8b5 100644 (file)
@@ -32,7 +32,7 @@ __alloc_cake(unsigned int cake_pg)
     if (!pa) {
         return NULL;
     }
-    return vmm_vmap(pa, cake_pg * PG_SIZE, PG_PREM_RW);
+    return vmap(pa, cake_pg * PG_SIZE, PG_PREM_RW, 0);
 }
 
 struct cake_s*