A Total Overhaul on the Lunaix's Virtual Memory Model (#26)
[lunaix-os.git] / lunaix-os / kernel / mm / dmm.c
index a76b9de979dd8e93ad68c6e9a24fdc7e7a571664..f665e9d023863dbe0c709873edfe52c27a04683c 100644 (file)
@@ -21,7 +21,7 @@ create_heap(struct proc_mm* pvms, ptr_t addr)
                                     .flags = MAP_ANON | MAP_PRIVATE,
                                     .type = REGION_TYPE_HEAP,
                                     .proct = PROT_READ | PROT_WRITE,
-                                    .mlen = PG_SIZE };
+                                    .mlen = PAGE_SIZE };
     int status = 0;
     struct mm_region* heap;
     if ((status = mmap_user(NULL, &heap, addr, NULL, &map_param))) {