This repository has been archived by the owner on Jan 20, 2022. It is now read-only.
[Pal/Linux-SGX] Rename enclave_tls
to pal_tcb_sgx
#638
Labels
enclave_tls
to pal_tcb_sgx
#638
TLS stands for "Thread Local Storage" and is a memory area dedicated to storing app-specific thread-local variables.
TCB stands for "Thread Control Block" and contains thread-specific internal state such as thread ID, stack pointer, and saved registers.
The Linux PAL correctly defines the struct
pal_tcb
. The Linux-SGX PAL however defines the structenclave_tls
. Theenclave_tls
name is misleading and breaks uniformity of code (see e.g. #555).I suggest to rename:
struct enclave_tls
tostruct pal_tcb_sgx
SET/GET_ENCLAVE_TLS
toSET/GET_ENCLAVE_TCB
sgx_tls.h
tosgx_tcb.h
If agreed, this change should be enacted after #555 is merged.
The text was updated successfully, but these errors were encountered: