fix page mounting contention (close #57)
authorLunaixsky <lunaixsky@qq.com>
Sat, 3 May 2025 17:22:20 +0000 (18:22 +0100)
committerLunaixsky <lunaixsky@qq.com>
Sat, 3 May 2025 17:22:20 +0000 (18:22 +0100)
lunaix-os/arch/x86/mm/vmutils.c

index 5f4d3df88bb1d612b715b2c7eed733e2e62ed5c9..8c997109ce480d8e05258ca0f80a4e72cca92b39 100644 (file)
@@ -10,8 +10,9 @@ dup_leaflet(struct leaflet* leaflet)
     
     new_leaflet = alloc_leaflet(leaflet_order(leaflet));
 
-    src_va = leaflet_mount(leaflet);
+    // TODO need a proper long term fix for the contention of page mount point
     dest_va = vmap(new_leaflet, KERNEL_DATA);
+    src_va = leaflet_mount(leaflet);
 
     size_t cnt_wordsz = leaflet_size(new_leaflet) / sizeof(ptr_t);