From: Lunaixsky Date: Sat, 3 May 2025 17:22:20 +0000 (+0100) Subject: fix page mounting contention (close #57) X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/commitdiff_plain/14046412dd248f8ae504cf75788edc480f2313d0?ds=sidebyside fix page mounting contention (close #57) --- diff --git a/lunaix-os/arch/x86/mm/vmutils.c b/lunaix-os/arch/x86/mm/vmutils.c index 5f4d3df..8c99710 100644 --- a/lunaix-os/arch/x86/mm/vmutils.c +++ b/lunaix-os/arch/x86/mm/vmutils.c @@ -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);