git://scm.lunaixsky.com
/
lunaix-os.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0fd474d
)
fix page mounting contention (close #57)
author
Lunaixsky
<lunaixsky@qq.com>
Sat, 3 May 2025 17:22:20 +0000
(18:22 +0100)
committer
Lunaixsky
<lunaixsky@qq.com>
Sat, 3 May 2025 17:22:20 +0000
(18:22 +0100)
lunaix-os/arch/x86/mm/vmutils.c
patch
|
blob
|
history
diff --git
a/lunaix-os/arch/x86/mm/vmutils.c
b/lunaix-os/arch/x86/mm/vmutils.c
index 5f4d3df88bb1d612b715b2c7eed733e2e62ed5c9..8c997109ce480d8e05258ca0f80a4e72cca92b39 100644
(file)
--- 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));
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);
dest_va = vmap(new_leaflet, KERNEL_DATA);
+ src_va = leaflet_mount(leaflet);
size_t cnt_wordsz = leaflet_size(new_leaflet) / sizeof(ptr_t);
size_t cnt_wordsz = leaflet_size(new_leaflet) / sizeof(ptr_t);