Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
6d6e9a42
Commit
6d6e9a42
authored
Feb 29, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Added definitions and structures for fiber local storage.
parent
bb27b375
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
+28
-0
server.c
dlls/ntdll/server.c
+2
-0
thread.c
dlls/ntdll/thread.c
+4
-0
winternl.h
include/winternl.h
+22
-0
No files found.
dlls/ntdll/server.c
View file @
6d6e9a42
...
...
@@ -146,6 +146,8 @@ void server_exit_thread( int status )
RtlAcquirePebLock
();
RemoveEntryList
(
&
NtCurrentTeb
()
->
TlsLinks
);
RtlReleasePebLock
();
RtlFreeHeap
(
GetProcessHeap
(),
0
,
NtCurrentTeb
()
->
FlsSlots
);
RtlFreeHeap
(
GetProcessHeap
(),
0
,
NtCurrentTeb
()
->
TlsExpansionSlots
);
info
.
stack_base
=
NtCurrentTeb
()
->
DeallocationStack
;
info
.
teb_base
=
NtCurrentTeb
();
...
...
dlls/ntdll/thread.c
View file @
6d6e9a42
...
...
@@ -63,6 +63,7 @@ static RTL_USER_PROCESS_PARAMETERS params; /* default parameters if no parent *
static
WCHAR
current_dir
[
MAX_NT_PATH_LENGTH
];
static
RTL_BITMAP
tls_bitmap
;
static
RTL_BITMAP
tls_expansion_bitmap
;
static
RTL_BITMAP
fls_bitmap
;
static
LIST_ENTRY
tls_links
;
static
size_t
sigstack_total_size
;
static
ULONG
sigstack_zero_bits
;
...
...
@@ -255,6 +256,7 @@ HANDLE thread_init(void)
peb
->
ProcessParameters
=
&
params
;
peb
->
TlsBitmap
=
&
tls_bitmap
;
peb
->
TlsExpansionBitmap
=
&
tls_expansion_bitmap
;
peb
->
FlsBitmap
=
&
fls_bitmap
;
peb
->
LdrData
=
&
ldr
;
params
.
CurrentDirectory
.
DosPath
.
Buffer
=
current_dir
;
params
.
CurrentDirectory
.
DosPath
.
MaximumLength
=
sizeof
(
current_dir
);
...
...
@@ -262,6 +264,8 @@ HANDLE thread_init(void)
RtlInitializeBitMap
(
&
tls_bitmap
,
peb
->
TlsBitmapBits
,
sizeof
(
peb
->
TlsBitmapBits
)
*
8
);
RtlInitializeBitMap
(
&
tls_expansion_bitmap
,
peb
->
TlsExpansionBitmapBits
,
sizeof
(
peb
->
TlsExpansionBitmapBits
)
*
8
);
RtlInitializeBitMap
(
&
fls_bitmap
,
peb
->
FlsBitmapBits
,
sizeof
(
peb
->
FlsBitmapBits
)
*
8
);
InitializeListHead
(
&
peb
->
FlsListHead
);
InitializeListHead
(
&
ldr
.
InLoadOrderModuleList
);
InitializeListHead
(
&
ldr
.
InMemoryOrderModuleList
);
InitializeListHead
(
&
ldr
.
InInitializationOrderModuleList
);
...
...
include/winternl.h
View file @
6d6e9a42
...
...
@@ -275,6 +275,20 @@ typedef struct _PEB
PRTL_BITMAP
TlsExpansionBitmap
;
/* 150 */
ULONG
TlsExpansionBitmapBits
[
32
];
/* 154 */
ULONG
SessionId
;
/* 1d4 */
ULARGE_INTEGER
AppCompatFlags
;
/* 1d8 */
ULARGE_INTEGER
AppCompatFlagsUser
;
/* 1e0 */
PVOID
ShimData
;
/* 1e8 */
PVOID
AppCompatInfo
;
/* 1ec */
UNICODE_STRING
CSDVersion
;
/* 1f0 */
PVOID
ActivationContextData
;
/* 1f8 */
PVOID
ProcessAssemblyStorageMap
;
/* 1fc */
PVOID
SystemDefaultActivationData
;
/* 200 */
PVOID
SystemAssemblyStorageMap
;
/* 204 */
ULONG
MinimumStackCommit
;
/* 208 */
PVOID
*
FlsCallback
;
/* 20c */
LIST_ENTRY
FlsListHead
;
/* 210 */
PRTL_BITMAP
FlsBitmap
;
/* 218 */
ULONG
FlsBitmapBits
[
4
];
/* 21c */
}
PEB
,
*
PPEB
;
...
...
@@ -343,6 +357,14 @@ typedef struct _TEB
ULONG
WaitingOnLoaderLock
;
/* f84 */
PVOID
Reserved5
[
3
];
/* f88 */
PVOID
*
TlsExpansionSlots
;
/* f94 */
ULONG
ImpersonationLocale
;
/* f98 */
ULONG
IsImpersonating
;
/* f9c */
PVOID
NlsCache
;
/* fa0 */
PVOID
ShimData
;
/* fa4 */
ULONG
HeapVirtualAffinity
;
/* fa8 */
PVOID
CurrentTransactionHandle
;
/* fac */
PVOID
ActiveFrame
;
/* fb0 */
PVOID
*
FlsSlots
;
/* fb4 */
}
TEB
,
*
PTEB
;
# endif
/* WINE_TEB_DEFINED */
#endif
/* WINE_NO_TEB */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment