Architectural Support: x86_64 (#37)
[lunaix-os.git] / lunaix-os / kernel / mm / region.c
index 14cada1525278887758353186465152c759f4006..d8035db4fef36d9d532206bcd95fb3b736e9ef4e 100644 (file)
@@ -26,7 +26,7 @@ region_create_range(ptr_t start, size_t length, u32_t attr)
     struct mm_region* region = valloc(sizeof(struct mm_region));
     *region = (struct mm_region){ .attr = attr,
                                   .start = start,
     struct mm_region* region = valloc(sizeof(struct mm_region));
     *region = (struct mm_region){ .attr = attr,
                                   .start = start,
-                                  .end = ROUNDUP(start + length, MEM_PAGE) };
+                                  .end = ROUNDUP(start + length, PAGE_SIZE) };
     return region;
 }
 
     return region;
 }