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:
Bahadir Balban
2008-10-29 16:59:06 +02:00
parent 3421a29693
commit 94a126dcde
4 changed files with 34 additions and 301 deletions
+3 -3
View File
@@ -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;