mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 04:13:32 +00:00
- Move the hack for MmUpdatePageDir before KeInitializeThread where it belongs.
svn path=/branches/ros-amd64-bringup/; revision=44034
This commit is contained in:
@@ -529,6 +529,9 @@ KiInitializeKernel(IN PKPROCESS InitProcess,
|
||||
DPRINT1("SMP Boot support not yet present\n");
|
||||
}
|
||||
|
||||
/* HACK for MmUpdatePageDir */
|
||||
((PETHREAD)InitThread)->ThreadsProcess = (PEPROCESS)InitProcess;
|
||||
|
||||
/* Setup the Idle Thread */
|
||||
KeInitializeThread(InitProcess,
|
||||
InitThread,
|
||||
@@ -546,9 +549,6 @@ KiInitializeKernel(IN PKPROCESS InitProcess,
|
||||
InitThread->WaitIrql = DISPATCH_LEVEL;
|
||||
InitProcess->ActiveProcessors = 1 << Number;
|
||||
|
||||
/* HACK for MmUpdatePageDir */
|
||||
((PETHREAD)InitThread)->ThreadsProcess = (PEPROCESS)InitProcess;
|
||||
|
||||
/* Set basic CPU Features that user mode can read */
|
||||
SharedUserData->ProcessorFeatures[PF_MMX_INSTRUCTIONS_AVAILABLE] =
|
||||
(KeFeatureBits & KF_MMX) ? TRUE: FALSE;
|
||||
@@ -621,7 +621,7 @@ NTAPI
|
||||
KiSystemStartup(IN ULONG_PTR Dummy,
|
||||
IN PROS_LOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
{
|
||||
FrLdrDbgPrint = ((PLOADER_PARAMETER_BLOCK)Dummy)->u.Amd64.DbgPrint;
|
||||
FrLdrDbgPrint = ((PLOADER_PARAMETER_BLOCK)Dummy)->u.I386.CommonDataArea;
|
||||
FrLdrDbgPrint("Hello from KiSystemStartup!!!\n");
|
||||
|
||||
KiSystemStartupReal((PLOADER_PARAMETER_BLOCK)Dummy);
|
||||
|
||||
Reference in New Issue
Block a user