1.1 --- a/libexec/lib/src/process.cc Mon Mar 06 16:04:23 2023 +0100
1.2 +++ b/libexec/lib/src/process.cc Mon Mar 06 16:05:44 2023 +0100
1.3 @@ -107,16 +107,9 @@
1.4 return l4_error(l4_factory_create_thread(l4re_env()->factory, *thread));
1.5 }
1.6
1.7 -/* Task access. */
1.8 -
1.9 -l4_cap_idx_t Process::get_task()
1.10 -{
1.11 - return _task;
1.12 -}
1.13 -
1.14 /* Configure the task environment. */
1.15
1.16 -long Process::configure_task(unsigned int threads)
1.17 +long Process::configure_task(l4_cap_idx_t *task, l4_cap_idx_t *rtask, unsigned int threads)
1.18 {
1.19 long err = create_task(threads);
1.20
1.21 @@ -145,6 +138,11 @@
1.22 {0, L4_INVALID_CAP, 0, 0},
1.23 };
1.24
1.25 + /* Return the capability details for the task. */
1.26 +
1.27 + *task = _task;
1.28 + *rtask = L4_BASE_TASK_CAP;
1.29 +
1.30 return map_capabilities(mapped_caps, false);
1.31 }
1.32