fix ipc map.

This commit is contained in:
张正
2023-09-21 21:44:17 +08:00
parent 6b2e44c958
commit db4f9e4741
15 changed files with 65 additions and 20 deletions

View File

@@ -66,10 +66,14 @@ static void task_syscall_func(kobject_t *kobj, syscall_prot_t sys_p, msg_tag_t i
break;
case TASK_OBJ_MAP:
{
kobj_del_list_t del;
kobj_del_list_init(&del);
int ret = obj_map_src_dst(&tag_task->obj_space, &cur_task->obj_space,
f->r[2], f->r[1],
tag_task->lim, f->r[3]);
tag_task->lim, f->r[3], &del);
kobj_del_list_to_do(&del);
tag = msg_tag_init4(0, 0, 0, ret);
}
break;