mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS:KE/x64] Move initialization of KeLoaderBlock
This commit is contained in:
parent
e1497d43d7
commit
ba62dd0aaa
1 changed files with 3 additions and 3 deletions
|
@ -429,15 +429,15 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
FrLdrDbgPrint = LoaderBlock->u.I386.CommonDataArea;
|
||||
//FrLdrDbgPrint("Hello from KiSystemStartup!!!\n");
|
||||
|
||||
/* Save the loader block */
|
||||
KeLoaderBlock = LoaderBlock;
|
||||
|
||||
/* Get the current CPU number */
|
||||
Cpu = KeNumberProcessors++; // FIXME
|
||||
|
||||
/* LoaderBlock initialization for Cpu 0 */
|
||||
if (Cpu == 0)
|
||||
{
|
||||
/* Save the loader block */
|
||||
KeLoaderBlock = LoaderBlock;
|
||||
|
||||
/* Set the initial stack, idle thread and process */
|
||||
LoaderBlock->KernelStack = (ULONG_PTR)KiP0BootStack;
|
||||
LoaderBlock->Thread = (ULONG_PTR)&KiInitialThread;
|
||||
|
|
Loading…
Reference in a new issue