Task initally exec'ing with success. Some errors need to be investigated.

- Directory creation, file read/write is OK.
- Cannot reuse old task's fds. They are not recycled for some reason.
- Problems with fork/clone/exit. They fail for a reason.
This commit is contained in:
Bahadir Balban
2008-12-01 13:53:50 +02:00
parent 783b1e025f
commit 05d8438f34
14 changed files with 239 additions and 79 deletions

View File

@@ -59,16 +59,6 @@ int sys_unmap(syscall_context_t *regs)
else if (!(target = find_task(tid)))
return -ESRCH;
/*
* These special values mean unmap all the mappings
* from task space except the kernel mappings
*/
if (virtual == UNMAP_ALL_SPACE &&
npages == UNMAP_ALL_SPACE) {
remove_mapping_pgd_all_user(target->pgd);
return 0;
}
for (int i = 0; i < npages; i++) {
ret = remove_mapping_pgd(virtual + i * PAGE_SIZE, target->pgd);
if (ret)