mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -32,6 +32,7 @@ extern unsigned int _image_base__;
|
||||||
|
|
||||||
static CRITICAL_SECTION PebLock;
|
static CRITICAL_SECTION PebLock;
|
||||||
static CRITICAL_SECTION LoaderLock;
|
static CRITICAL_SECTION LoaderLock;
|
||||||
|
static RTL_BITMAP TlsBitMap;
|
||||||
|
|
||||||
ULONG NtGlobalFlag = 0;
|
ULONG NtGlobalFlag = 0;
|
||||||
|
|
||||||
|
@ -115,6 +116,13 @@ LdrInitializeThunk (ULONG Unknown1,
|
||||||
Peb->FastPebLockRoutine = (PPEBLOCKROUTINE)RtlEnterCriticalSection;
|
Peb->FastPebLockRoutine = (PPEBLOCKROUTINE)RtlEnterCriticalSection;
|
||||||
Peb->FastPebUnlockRoutine = (PPEBLOCKROUTINE)RtlLeaveCriticalSection;
|
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 */
|
/* initalize loader lock */
|
||||||
RtlInitializeCriticalSection (&LoaderLock);
|
RtlInitializeCriticalSection (&LoaderLock);
|
||||||
Peb->LoaderLock = &LoaderLock;
|
Peb->LoaderLock = &LoaderLock;
|
||||||
|
|
Loading…
Reference in a new issue