From 14046412dd248f8ae504cf75788edc480f2313d0 Mon Sep 17 00:00:00 2001 From: Lunaixsky Date: Sat, 3 May 2025 18:22:20 +0100 Subject: [PATCH] fix page mounting contention (close #57) --- lunaix-os/arch/x86/mm/vmutils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.27.0