summaryrefslogtreecommitdiffhomepage
path: root/arch/nt32/src/crt_tls.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/nt32/src/crt_tls.c')
-rw-r--r--arch/nt32/src/crt_tls.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/arch/nt32/src/crt_tls.c b/arch/nt32/src/crt_tls.c
deleted file mode 100644
index 20080c6..0000000
--- a/arch/nt32/src/crt_tls.c
+++ /dev/null
@@ -1,24 +0,0 @@
-#include <unistd.h>
-#include <stdint.h>
-#include <stddef.h>
-#include "psxglue.h"
-#include "pthread_arch.h"
-
-typedef unsigned int __tls_word __attribute__((mode(word)));
-typedef unsigned int __tls_ptr __attribute__((mode(pointer)));
-
-struct __emutls_object
-{
- __tls_word size;
- __tls_word align;
- ptrdiff_t offset;
- void * defval;
-};
-
-void * __emutls_get_address (struct __emutls_object * obj)
-{
- int dsoidx = obj->align & 0xFFFF0000;
- struct __tlca_abi * tlca = (struct __tlca_abi *)__psx_tlca();
- return tlca->pthread_dtls[dsoidx >> 16] + obj->offset;
-}
-