mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[NTOS:KE/x64] Fix KiInitializeUserApc
Set EFlags instead of "fixing" it. Prevents crashes in the thread initialization APC, when the thread has set the direction flag or trap flag.
This commit is contained in:
@@ -108,9 +108,8 @@ KiInitializeUserApc(
|
||||
TrapFrame->SegGs = KGDT64_R3_DATA | RPL_MASK;
|
||||
TrapFrame->SegSs = KGDT64_R3_DATA | RPL_MASK;
|
||||
|
||||
/* Sanitize EFLAGS, enable interrupts */
|
||||
TrapFrame->EFlags &= EFLAGS_USER_SANITIZE;
|
||||
TrapFrame->EFlags |= EFLAGS_INTERRUPT_MASK;
|
||||
/* Initialize EFLAGS */
|
||||
TrapFrame->EFlags = EFLAGS_INTERRUPT_MASK;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user