]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
pthread_create: TLS alignment and cleanup
authorDragos Iulian Argint <dragosargint21@gmail.com>
Sun, 14 Aug 2022 22:13:29 +0000 (01:13 +0300)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 11:56:36 +0000 (11:56 +0000)
commit523f201d1685b272a166f99e7d1580f727f1d06a
treef128f04c2e64fc631ca283335f7d4332a5c8ec73
parent5d1f0dadec07d755e291822924ba3e0c8e051aa5
pthread_create: TLS alignment and cleanup

This patch replaces 2 function calls from musl with
2 custom ones and introduces an additional size
when allocating the map for a thread, `libc.tls_align`.
It is needed because Unikraft demands that the tls be aligned.

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
patches/0014-Change-some-things-in-pthread_create.c.patch [new file with mode: 0644]