https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e65559460913f1dc41f5d…
commit e65559460913f1dc41f5d33f671aa6353bb3e7b0
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sat Dec 2 16:37:44 2023 +0200
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Fri Dec 8 20:16:51 2023 +0200
[NTOS:KE/x64] (Re)move initialization of IRQL and TR
---
ntoskrnl/ke/amd64/kiinit.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ntoskrnl/ke/amd64/kiinit.c b/ntoskrnl/ke/amd64/kiinit.c
index c6810ef1253..999b09b4fbe 100644
--- a/ntoskrnl/ke/amd64/kiinit.c
+++ b/ntoskrnl/ke/amd64/kiinit.c
@@ -162,7 +162,6 @@ KiInitializePcr(IN PKIPCR Pcr,
/* Start us out at PASSIVE_LEVEL */
Pcr->Irql = PASSIVE_LEVEL;
- KeSetCurrentIrql(PASSIVE_LEVEL);
}
VOID
@@ -240,6 +239,8 @@ KiInitializeCpu(PKIPCR Pcr)
/* Initialize MXCSR */
_mm_setcsr(INITIAL_MXCSR);
+
+ KeSetCurrentIrql(PASSIVE_LEVEL);
}
static
@@ -276,9 +277,6 @@ KiInitializeTss(
/* Setup a stack for NMI Traps */
Tss->Ist[3] = (ULONG64)NmiStack;
-
- /* Load the task register */
- __ltr(KGDT64_SYS_TSS);
}
CODE_SEG("INIT")