]> xenbits.xensource.com Git - unikraft/libs/musl.git/commit
uk_init_tls: Return tcb pointer in __uk_copy_tls
authorRobert Kuban <robert.kuban@opensynergy.com>
Tue, 16 Aug 2022 18:53:21 +0000 (20:53 +0200)
committerUnikraft <monkey@unikraft.io>
Thu, 24 Nov 2022 19:37:39 +0000 (19:37 +0000)
commita989d560c2a24da1a0676b5a6f82e63fe941f63e
tree637aa3abb4bce11ae779b5db8de5d42f676eb4aa
parent84f96d701cfb91bd12d09ab19783d66821a8c675
uk_init_tls: Return tcb pointer in __uk_copy_tls

Translate the tlsp to the tcb pointer before using as TCB.

On x86_64 both pointer are identical, but in aarch64 the tlsp
points into the last 16 bytes of the TCB.

Signed-off-by: Robert Kuban <robert.kuban@opensynergy.com>
Reviewed-by: Eduard Vintilă <eduard.vintila47@gmail.com>
Reviewed-by: Razvan Virtan <virtanrazvan@gmail.com>
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io>
Approved-by: Razvan Deaconescu <razvand@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #6
__uk_init_tls.c