mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[NTOS:KE/x64] Move Initialization of TSS
This commit is contained in:
@@ -446,6 +446,13 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
|
||||
/* Initialize the PCR */
|
||||
KiInitializePcr(&KiInitialPcr, 0, &KiInitialThread.Tcb, KiP0DoubleFaultStack);
|
||||
|
||||
/* Setup the TSS descriptors and entries */
|
||||
KiInitializeTss(&KiInitialPcr,
|
||||
KiInitialPcr.TssBase,
|
||||
KiP0BootStack,
|
||||
KiP0DoubleFaultStack,
|
||||
KiP0DoubleFaultStack);
|
||||
}
|
||||
|
||||
/* Get Pcr from loader block */
|
||||
@@ -473,13 +480,6 @@ KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
/* Initialize the module list (ntos, hal, kdcom) */
|
||||
KiInitModuleList(LoaderBlock);
|
||||
|
||||
/* Setup the TSS descriptors and entries */
|
||||
KiInitializeTss(Pcr,
|
||||
Pcr->TssBase,
|
||||
(PVOID)InitialStack,
|
||||
KiP0DoubleFaultStack,
|
||||
KiP0DoubleFaultStack);
|
||||
|
||||
/* Setup the IDT */
|
||||
KeInitExceptions();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user