4
1
mirror of https://github.com/DragonOS-Community/DragonOS.git synced 2025-07-10 22:43:25 +00:00

完善重映射过程中获取新映射区域时的map_flags (#569)

This commit is contained in:
Jomo
2024-03-09 11:40:44 +08:00
committed by GitHub
parent 5c4224e5a8
commit 3055390c25
2 changed files with 10 additions and 5 deletions

@ -129,6 +129,10 @@ impl Into<MapFlags> for VmFlags {
map_flags |= MapFlags::MAP_SYNC;
}
if self.contains(VmFlags::VM_MAYSHARE) {
map_flags |= MapFlags::MAP_SHARED;
}
map_flags
}
}