Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Vorlicek <janvorli@microsoft.com>2015-10-26 06:42:23 +0300
committerJan Vorlicek <janvorli@microsoft.com>2015-11-02 00:44:15 +0300
commit689578f37ba7dc50a0ffd560367cdcd29ef3e427 (patch)
treee9f007ee4e839a10bb0840281931a4cb0a18d224 /src/Native/Runtime/threadstore.cpp
parentc9325e9b9fee0232b4768d4eb9cd1f458e4cfdac (diff)
Linux PAL implementation for MRT
This change implements the Linux PAL for MRT, using mostly stubbed out functions.
Diffstat (limited to 'src/Native/Runtime/threadstore.cpp')
-rw-r--r--src/Native/Runtime/threadstore.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Native/Runtime/threadstore.cpp b/src/Native/Runtime/threadstore.cpp
index 9e0e7224f..04e8597d2 100644
--- a/src/Native/Runtime/threadstore.cpp
+++ b/src/Native/Runtime/threadstore.cpp
@@ -460,12 +460,14 @@ Thread * ThreadStore::GetCurrentThreadIfAvailable()
}
#endif // !DACCESS_COMPILE
+#ifndef FEATURE_DECLSPEC_THREAD
// Keep a global variable in the target process which contains
// the address of _tls_index. This is the breadcrumb needed
// by DAC to read _tls_index since we don't control the
// declaration of _tls_index directly.
EXTERN_C UInt32 _tls_index;
GPTR_IMPL_INIT(UInt32, p_tls_index, &_tls_index);
+#endif // !FEATURE_DECLSPEC_THREAD
#ifndef DACCESS_COMPILE
// We must prevent the linker from removing the unused global variable
@@ -506,6 +508,7 @@ PTR_Thread ThreadStore::GetThreadFromTEB(TADDR pTEB)
return (PTR_Thread)(pOurTls + OFFSETOF__TLS__tls_CurrentThread);
}
+
#endif
#ifndef DACCESS_COMPILE