mirror of
https://github.com/drasko/codezero.git
synced 2026-04-28 22:51:31 +02:00
exit() seems to work, but needs more testing.
- Added cleaner allocation of shm addresses by moving the allocation to do_mmap(). - Added deletion routine for all objects: shadow, vm_file of type vfs_file, shm_file, etc. - Need to make sure objects get deleted properly after exit(). - Currently we allow a single, unique virtual address for each shm segment.
This commit is contained in:
@@ -293,7 +293,7 @@ int task_mmap_regions(struct tcb *task, struct vm_file *file)
|
||||
}
|
||||
|
||||
/* Task's utcb */
|
||||
task->utcb = utcb_vaddr_new();
|
||||
task->utcb = utcb_new_address();
|
||||
|
||||
/* Create a shared memory segment available for shmat() */
|
||||
if (IS_ERR(shm = shm_new((key_t)task->utcb, __pfn(DEFAULT_UTCB_SIZE))))
|
||||
|
||||
Reference in New Issue
Block a user