mirror of
https://github.com/drasko/codezero.git
synced 2026-02-26 16:53:14 +01:00
Split vmas had no objects. Now fixed.
When sys_munmap() splits a vma, the new vma had no copy of the objects in the original vma. Now we fixed that using a vma_copy_links() function which can also be used as part of fork().
This commit is contained in:
@@ -252,6 +252,7 @@ static inline void task_add_vma(struct tcb *task, struct vm_area *vma)
|
||||
/* Main page fault entry point */
|
||||
int page_fault_handler(struct tcb *faulty_task, fault_kdata_t *fkdata);
|
||||
|
||||
int vma_copy_links(struct vm_area *new_vma, struct vm_area *vma);
|
||||
int vma_drop_merge_delete(struct vm_area *vma, struct vm_obj_link *link);
|
||||
int vma_drop_merge_delete_all(struct vm_area *vma);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user