mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[NTOS:KE/x64] Move initialization of PCR
This commit is contained in:
parent
ba62dd0aaa
commit
160980aba1
1 changed files with 3 additions and 3 deletions
|
@ -443,6 +443,9 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
LoaderBlock->Thread = (ULONG_PTR)&KiInitialThread;
|
||||
LoaderBlock->Process = (ULONG_PTR)&KiInitialProcess.Pcb;
|
||||
LoaderBlock->Prcb = (ULONG_PTR)&KiInitialPcr.Prcb;
|
||||
|
||||
/* Initialize the PCR */
|
||||
KiInitializePcr(&KiInitialPcr, 0, &KiInitialThread.Tcb, KiP0DoubleFaultStack);
|
||||
}
|
||||
|
||||
/* Get Pcr from loader block */
|
||||
|
@ -461,9 +464,6 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
|||
/* Set us as the current process */
|
||||
InitialThread->ApcState.Process = (PVOID)LoaderBlock->Process;
|
||||
|
||||
/* Initialize the PCR */
|
||||
KiInitializePcr(Pcr, Cpu, InitialThread, KiP0DoubleFaultStack);
|
||||
|
||||
/* Initialize the CPU features */
|
||||
KiInitializeCpu(Pcr);
|
||||
|
||||
|
|
Loading…
Reference in a new issue