vm: implement private and shared address space mappings
whether a mapping is private or shared determines how the mapping is handled when a task is duplicated.
This commit is contained in:
+1
-2
@@ -290,8 +290,7 @@ struct vm_object *vm_object_duplicate_cow(struct vm_object *vmo)
|
||||
memcpy(out->vo_name, vmo->vo_name, sizeof out->vo_name);
|
||||
out->vo_flags = vmo->vo_flags | VMO_LAZY_ATTACH;
|
||||
out->vo_ctrl = vmo->vo_ctrl;
|
||||
out->vo_key = 0;
|
||||
out->vo_src_key = vmo->vo_key;
|
||||
out->vo_key = vmo->vo_key;
|
||||
out->vo_prot = vmo->vo_prot;
|
||||
out->vo_size = vmo->vo_size;
|
||||
memcpy(out->vo_name, vmo->vo_name, sizeof vmo->vo_name);
|
||||
|
||||
Reference in New Issue
Block a user