]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Set tid to 0 for the main thread
authorDragos Iulian Argint <dragosargint21@gmail.com>
Wed, 26 Oct 2022 21:05:59 +0000 (00:05 +0300)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 11:56:36 +0000 (11:56 +0000)
commitfa60dce817118b648cba9f5a57596d4206b33b3a
tree39e8452d34020a30691555df297108173656d253
parentb7f5a0e6445dcb9d36294ad3b3962cc28512df29
Set tid to 0 for the main thread

This commit ads in the Config.uk the following default selection:
`LIBPOSIX_PROCESS_INIT_PIDS`, which allows pid,tid assignation
However, there is a bug in the assignment of tids that
makes the tid of the main thread not available when the
LIBC TCB (i.e. pthread structure) is initialized. The
currently adopted solution is to hardcode the tid to 0.

Signed-off-by: Dragos Iulian Argint <dragosargint21@gmail.com>
Signed-off-by: Robert Kuban <robert.kuban@opensynergy.com>
Reviewed-by: Florin Postolache <florin.postolache80@gmail.com>
Reviewed-by: Simon Kuenzer <simon@unikraft.io>
Reviewed-by: Cezar Craciunoiu <cezar.craciunoiu@unikraft.io>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Reviewed-by: Robert Kuban <robert.kuban@opensynergy.com>
Approved-by: Simon Kuenzer <simon@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #9
Config.uk
__uk_init_tls.c