]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Initialize TLS and reserve TCB space
authorDragos Iulian Argint <dragosargint21@gmail.com>
Sun, 14 Aug 2022 21:44:54 +0000 (00:44 +0300)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 11:56:36 +0000 (11:56 +0000)
commitc3afcb8cf78141d96cee13754b78cf8b35268397
tree6d6399e5bb9a64470f3e58d1856b7471bc141849
parente49ca28292d920625350d1525d111f835fa511a5
Initialize TLS and reserve TCB space

This commit adds a call in Makefile.uk to reserve the space
needed for the LIBC TCB (e.g. `pthread` structure)
and adds 3 glue code files:
`__uk_init_tls.c` - initialize an Unikraft TLS
`__uk_unmapself.c` - allows unmapping for detached threads
`__set_thread_area.c` - bypass for arch_prctl() syscall for
setting the tls pointer

Signed-off-by: Dragos Iulian Argint <dragosargint21@gmail.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
Makefile.uk