feat: page caching layer for vfs
[lunaix-os.git] / lunaix-os / kernel / mm / region.c
index 1f706dc362140c5203a36b9371b04571b8f492b1..920c35bbb86a3ea26cf04c247bce0b317128c5e1 100644 (file)
@@ -1,5 +1,5 @@
-#include <lunaix/mm/kalloc.h>
 #include <lunaix/mm/region.h>
+#include <lunaix/mm/valloc.h>
 
 void
 region_add(struct mm_region* regions,
@@ -7,7 +7,7 @@ region_add(struct mm_region* regions,
            unsigned long end,
            unsigned int attr)
 {
-    struct mm_region* region = lxmalloc(sizeof(struct mm_region));
+    struct mm_region* region = valloc(sizeof(struct mm_region));
 
     *region = (struct mm_region){ .attr = attr, .end = end, .start = start };