Browse Source

[Pal/Linux-SGX] Use type for enclave_tls instead of void*

grp and thread member of struct enclave_tls are actually typed.
So use correct type for them instead of void *.
Also the use of void * to hide implementation is poor and not
type-safe. The right way is to hide the definition of struct.

Signed-off-by: Isaku Yamahata <isaku.yamahata@gmail.com>
Isaku Yamahata 6 years ago
parent
commit
f9536df5f2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Pal/src/host/Linux-SGX/sgx_tls.h

+ 2 - 2
Pal/src/host/Linux-SGX/sgx_tls.h

@@ -12,13 +12,13 @@ struct enclave_tls {
     uint64_t initial_stack_offset;
     void *   aep;
     void *   ssa;
-    void *   gpr;
+    sgx_arch_gpr_t * gpr;
     void *   exit_target;
     void *   fsbase;
     void *   stack;
     void *   ustack_top;
     void *   ustack;
-    void *   thread;
+    struct pal_handle_thread * thread;
 };
 
 #ifndef DEBUG