mirror of
https://github.com/drasko/codezero.git
synced 2026-01-12 10:53:16 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user