A Total Overhaul on the Lunaix's Virtual Memory Model (#26)
[lunaix-os.git] / lunaix-os / kernel / exe / exec.c
index 9ab8ad70e886c83bb55c8008699e380d0fc782d7..6f2962e8048f947e3b6a056a963ba271fc060a37 100644 (file)
@@ -120,7 +120,7 @@ exec_load(struct exec_container* container, struct v_file* executable)
     if (!argv_extra[1]) {
         // If loading a statically linked file, then heap remapping we can do,
         // otherwise delayed.
-        create_heap(vmspace(proc), PG_ALIGN(container->exe.end));
+        create_heap(vmspace(proc), va_align(container->exe.end));
     }
 
     if (container->vms_mnt == VMS_SELF) {