]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
Provide `__set_thread_area()` as glue code
authorDragos Iulian Argint <dragosargint21@gmail.com>
Sun, 14 Aug 2022 21:50:22 +0000 (00:50 +0300)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 11:56:36 +0000 (11:56 +0000)
commitaeed46206205cd26d5dc86f6b2009dc71433a91c
tree9b0239218169183aba115e14f3b40d44819c7645
parentc6a330c243fa390f2afc786e5c803dd344d51b3d
Provide `__set_thread_area()` as glue code

`__set_thread_area()` is a function that is usually
architecture dependent, it sets the tls pointer in the
fs register. An `arch_prctl` system call is used. We
are replacing this call with a custom version because
`arch_prctl()` is not implemented in Unikraft at the
moment.

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
__set_thread_area.c [new file with mode: 0644]