mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 06:25:49 +00:00
[NTOS:KE/x64] Move Initialization of TSS
This commit is contained in:
parent
160980aba1
commit
0a7255e4bf
1 changed files with 7 additions and 7 deletions
|
@ -446,6 +446,13 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
|
|
||||||
/* Initialize the PCR */
|
/* Initialize the PCR */
|
||||||
KiInitializePcr(&KiInitialPcr, 0, &KiInitialThread.Tcb, KiP0DoubleFaultStack);
|
KiInitializePcr(&KiInitialPcr, 0, &KiInitialThread.Tcb, KiP0DoubleFaultStack);
|
||||||
|
|
||||||
|
/* Setup the TSS descriptors and entries */
|
||||||
|
KiInitializeTss(&KiInitialPcr,
|
||||||
|
KiInitialPcr.TssBase,
|
||||||
|
KiP0BootStack,
|
||||||
|
KiP0DoubleFaultStack,
|
||||||
|
KiP0DoubleFaultStack);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Get Pcr from loader block */
|
/* Get Pcr from loader block */
|
||||||
|
@ -473,13 +480,6 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||||
/* Initialize the module list (ntos, hal, kdcom) */
|
/* Initialize the module list (ntos, hal, kdcom) */
|
||||||
KiInitModuleList(LoaderBlock);
|
KiInitModuleList(LoaderBlock);
|
||||||
|
|
||||||
/* Setup the TSS descriptors and entries */
|
|
||||||
KiInitializeTss(Pcr,
|
|
||||||
Pcr->TssBase,
|
|
||||||
(PVOID)InitialStack,
|
|
||||||
KiP0DoubleFaultStack,
|
|
||||||
KiP0DoubleFaultStack);
|
|
||||||
|
|
||||||
/* Setup the IDT */
|
/* Setup the IDT */
|
||||||
KeInitExceptions();
|
KeInitExceptions();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue