From 33433459c75df432cb2136dc6a6bed53bd08f084 Mon Sep 17 00:00:00 2001 From: Simon Gaiser Date: Tue, 30 Apr 2019 14:35:47 +0200 Subject: [PATCH] [Pal/Linux-SGX] Document usage of TLS --- Pal/src/host/Linux-SGX/sgx_tls.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Pal/src/host/Linux-SGX/sgx_tls.h b/Pal/src/host/Linux-SGX/sgx_tls.h index 3dcc3ea1..ae9bcc7f 100644 --- a/Pal/src/host/Linux-SGX/sgx_tls.h +++ b/Pal/src/host/Linux-SGX/sgx_tls.h @@ -4,6 +4,12 @@ #ifndef __SGX_TLS_H__ #define __SGX_TLS_H__ +/* + * Beside the classic thread local storage (like ustack, thread, etc.) the TLS + * area is also used to pass parameters needed during enclave or thread + * initialization. Some of them are thread specific (like tcs_offset) and some + * of them are identical for all threads (like enclave_size). + */ struct enclave_tls { uint64_t enclave_size; uint64_t tcs_offset;