1.1 --- a/libexec/include/exec/process.h Mon Feb 13 18:03:45 2023 +0100
1.2 +++ b/libexec/include/exec/process.h Tue Feb 14 21:05:14 2023 +0100
1.3 @@ -82,7 +82,7 @@
1.4
1.5 /* Task and thread initialisation. */
1.6
1.7 - long create_task();
1.8 + long create_task(unsigned int threads);
1.9
1.10 long create_thread(l4_cap_idx_t *thread);
1.11
1.12 @@ -91,7 +91,7 @@
1.13
1.14 l4_cap_idx_t allocate_cap();
1.15
1.16 - long configure_task();
1.17 + long configure_task(unsigned int threads = 2);
1.18
1.19 long configure_thread(l4_cap_idx_t server, l4_cap_idx_t mapped_cap = L4_INVALID_CAP);
1.20
2.1 --- a/libexec/lib/src/process.cc Mon Feb 13 18:03:45 2023 +0100
2.2 +++ b/libexec/lib/src/process.cc Tue Feb 14 21:05:14 2023 +0100
2.3 @@ -87,14 +87,14 @@
2.4
2.5 /* Task and thread initialisation. */
2.6
2.7 -long Process::create_task()
2.8 +long Process::create_task(unsigned int threads)
2.9 {
2.10 _task = ipc_cap_alloc();
2.11
2.12 if (l4_is_invalid_cap(_task))
2.13 return -L4_ENOMEM;
2.14
2.15 - return l4_error(l4_factory_create_task(l4re_env()->factory, _task, get_utcb_fpage(0, 2)));
2.16 + return l4_error(l4_factory_create_task(l4re_env()->factory, _task, get_utcb_fpage(0, threads)));
2.17 }
2.18
2.19 long Process::create_thread(l4_cap_idx_t *thread)
2.20 @@ -109,9 +109,9 @@
2.21
2.22 /* Configure the task environment. */
2.23
2.24 -long Process::configure_task()
2.25 +long Process::configure_task(unsigned int threads)
2.26 {
2.27 - long err = create_task();
2.28 + long err = create_task(threads);
2.29
2.30 if (err)
2.31 return err;