Changeset fb13b44 in mainline for kernel/generic/src/proc/task.c
- Timestamp:
- 2019-08-06T19:57:27Z (6 years ago)
- Children:
- 103939e
- Parents:
- d89b259
- git-author:
- Michal Koutný <xm.koutny+hos@…> (2015-08-10 08:35:21)
- git-committer:
- Matthieu Riolo <matthieu.riolo@…> (2019-08-06 19:57:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/proc/task.c
rd89b259 rfb13b44 190 190 /** Create new task with no threads. 191 191 * 192 * @param as Task's address space. 193 * @param name Symbolic name (a copy is made). 192 * @param as Task's address space. 193 * @param name Symbolic name (a copy is made). 194 * @param answerbox (Optional) answerbox where box 0 is connected to. 194 195 * 195 196 * @return New task's structure. 196 197 * 197 198 */ 198 task_t *task_create(as_t *as, const char *name )199 task_t *task_create(as_t *as, const char *name, answerbox_t *answerbox) 199 200 { 200 201 task_t *task = (task_t *) slab_alloc(task_cache, FRAME_ATOMIC); … … 234 235 #endif 235 236 236 if (( ipc_box_0) &&237 (container_check( ipc_box_0->task->container, task->container))) {237 if ((answerbox) && 238 (container_check(answerbox->task->container, task->container))) { 238 239 cap_phone_handle_t phone_handle; 239 240 errno_t rc = phone_alloc(task, true, &phone_handle, NULL); … … 247 248 kobject_t *phone_obj = kobject_get(task, phone_handle, 248 249 KOBJECT_TYPE_PHONE); 249 (void) ipc_phone_connect(phone_obj->phone, ipc_box_0);250 (void) ipc_phone_connect(phone_obj->phone, answerbox); 250 251 } 251 252
Note:
See TracChangeset
for help on using the changeset viewer.