mirror of
https://github.com/drasko/codezero.git
synced 2026-10-25 19:27:28 +01:00
munmap compiling.
do_munmap currently shrinks, splits, destroys vmas and unmaps the given virtual address range from the task. Unmapped pages may go completely unused but page reclamation will be done in another part of the pager rather than directly on the munmap instance.
This commit is contained in:
+3
-3
@@ -145,9 +145,9 @@ int do_shmdt(struct tcb *task, struct vm_file *shm)
|
||||
{
|
||||
int err;
|
||||
|
||||
if ((err = do_munmap(shm_file_to_desc(shm)->shm_addr,
|
||||
shm_file_to_desc(shm)->npages,
|
||||
task)) < 0)
|
||||
if ((err = do_munmap(task,
|
||||
shm_file_to_desc(shm)->shm_addr,
|
||||
shm_file_to_desc(shm)->npages)) < 0)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user