mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
Added tls bitmap initialization
svn path=/trunk/; revision=1430
This commit is contained in:
parent
885e8a3344
commit
41ac59fb91
1 changed files with 9 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: startup.c,v 1.32 2000/10/08 16:32:52 dwelch Exp $
|
||||
/* $Id: startup.c,v 1.33 2000/11/19 15:59:46 ekohl Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -32,6 +32,7 @@ extern unsigned int _image_base__;
|
|||
|
||||
static CRITICAL_SECTION PebLock;
|
||||
static CRITICAL_SECTION LoaderLock;
|
||||
static RTL_BITMAP TlsBitMap;
|
||||
|
||||
ULONG NtGlobalFlag = 0;
|
||||
|
||||
|
@ -115,6 +116,13 @@ LdrInitializeThunk (ULONG Unknown1,
|
|||
Peb->FastPebLockRoutine = (PPEBLOCKROUTINE)RtlEnterCriticalSection;
|
||||
Peb->FastPebUnlockRoutine = (PPEBLOCKROUTINE)RtlLeaveCriticalSection;
|
||||
|
||||
/* initialize tls bitmap */
|
||||
RtlInitializeBitMap (&TlsBitMap,
|
||||
Peb->TlsBitmapBits,
|
||||
TLS_MINIMUM_AVAILABLE);
|
||||
Peb->TlsBitmap = &TlsBitMap;
|
||||
Peb->TlsExpansionCounter = TLS_MINIMUM_AVAILABLE;
|
||||
|
||||
/* initalize loader lock */
|
||||
RtlInitializeCriticalSection (&LoaderLock);
|
||||
Peb->LoaderLock = &LoaderLock;
|
||||
|
|
Loading…
Reference in a new issue