blob: e359a990e1332463dbf2a6d5bfa0ad5609821e30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// TLS.H -
//
//
// Encapsulates TLS access for maximum performance.
//
// **************************************************************************************
// WARNING!!!: These values are used by SOS in the diagnostics repo and need to the same.
// See: https://github.com/dotnet/diagnostics/blob/master/src/inc/tls.h
// **************************************************************************************
#ifndef __tls_h__
#define __tls_h__
#define OFFSETOF__TLS__tls_CurrentThread (0x0)
#define OFFSETOF__TLS__tls_EETlsData (2*sizeof(void*))
#ifdef DBG_TARGET_WIN64
#define WINNT_OFFSETOF__TEB__ThreadLocalStoragePointer 0x58
#else
#define WINNT_OFFSETOF__TEB__ThreadLocalStoragePointer 0x2c
#endif
#endif // __tls_h__
|