Author: ion
Date: Thu Oct 5 19:13:59 2006
New Revision: 24412
URL:
http://svn.reactos.org/svn/reactos?rev=24412&view=rev
Log:
- Put all Phase 1 Ex* Initialization in ExpInitSystemPhase1 and clean up associated
deprecated calls.
- Call ExpInitializePushLocks since we weren't doing this before.
Modified:
trunk/reactos/ntoskrnl/ex/init.c
trunk/reactos/ntoskrnl/include/internal/ex.h
Modified: trunk/reactos/ntoskrnl/ex/init.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/init.c?rev=244…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/init.c (original)
+++ trunk/reactos/ntoskrnl/ex/init.c Thu Oct 5 19:13:59 2006
@@ -327,10 +327,10 @@
}
-INIT_FUNCTION
NTSTATUS
-ExpLoadInitialProcess(PHANDLE ProcessHandle,
- PHANDLE ThreadHandle)
+NTAPI
+ExpLoadInitialProcess(IN PHANDLE ProcessHandle,
+ IN PHANDLE ThreadHandle)
{
PRTL_USER_PROCESS_PARAMETERS ProcessParameters = NULL;
NTSTATUS Status;
@@ -469,21 +469,6 @@
return STATUS_SUCCESS;
}
-VOID
-NTAPI
-ExInit3(VOID)
-{
- ExpInitializeEventImplementation();
- ExpInitializeEventPairImplementation();
- ExpInitializeMutantImplementation();
- ExpInitializeSemaphoreImplementation();
- ExpInitializeTimerImplementation();
- LpcpInitSystem();
- ExpInitializeProfileImplementation();
- ExpWin32kInit();
- ExpInitUuids();
-}
-
ULONG
NTAPI
ExComputeTickCountMultiplier(IN ULONG ClockIncrement)
@@ -542,8 +527,37 @@
NTAPI
ExpInitSystemPhase1(VOID)
{
- /* Not yet done */
- return FALSE;
+ /* Initialize worker threads */
+ ExpInitializeWorkerThreads();
+
+ /* Initialize pushlocks */
+ ExpInitializePushLocks();
+
+ /* Initialize events and event pairs */
+ ExpInitializeEventImplementation();
+ ExpInitializeEventPairImplementation();
+
+ /* Initialize callbacks */
+ ExpInitializeCallbacks();
+
+ /* Initialize mutants */
+ ExpInitializeMutantImplementation();
+
+ /* Initialize semaphores */
+ ExpInitializeSemaphoreImplementation();
+
+ /* Initialize timers */
+ ExpInitializeTimerImplementation();
+
+ /* Initialize profiling */
+ ExpInitializeProfileImplementation();
+
+ /* Initialize UUIDs */
+ ExpInitUuids();
+
+ /* Initialize Win32K */
+ ExpWin32kInit();
+ return TRUE;
}
BOOLEAN
@@ -847,6 +861,9 @@
HANDLE ThreadHandle;
NTSTATUS Status;
+ /* Set to phase 1 */
+ ExpInitializationPhase = 1;
+
/* Set us at maximum priority */
KeSetPriorityThread(KeGetCurrentThread(), HIGH_PRIORITY);
@@ -860,13 +877,7 @@
HalInitSystem(1, KeLoaderBlock);
/* Initialize Basic System Objects and Worker Threads */
- ExInit3();
-
- /* initialize the worker threads */
- ExpInitializeWorkerThreads();
-
- /* initialize callbacks */
- ExpInitializeCallbacks();
+ ExInitSystem();
/* Call KD Providers at Phase 1 */
KdInitSystem(1, KeLoaderBlock);
@@ -906,6 +917,9 @@
/* Create NLS section */
ExpInitNls();
+
+ /* Initialize LPC */
+ LpcpInitSystem();
/* Import and Load Registry Hives */
CmInitHives(ExpInTextModeSetup);
Modified: trunk/reactos/ntoskrnl/include/internal/ex.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/ex.h (original)
+++ trunk/reactos/ntoskrnl/include/internal/ex.h Thu Oct 5 19:13:59 2006
@@ -63,6 +63,10 @@
VOID
NTAPI
+ExpInitializePushLocks(VOID);
+
+VOID
+NTAPI
ExpInitTimeZoneInfo(VOID);
VOID