mirror of
https://github.com/reactos/reactos.git
synced 2024-08-28 14:18:41 +00:00
Fix for wrongly disabling interrupts causing system time loss.
svn path=/trunk/; revision=3574
This commit is contained in:
parent
dc908bafd1
commit
5daca85b58
|
@ -155,6 +155,8 @@ Ke386InitThreadWithContext(PKTHREAD Thread, PCONTEXT Context)
|
||||||
TrapFrame->ErrorCode = 0;
|
TrapFrame->ErrorCode = 0;
|
||||||
TrapFrame->Cs = Context->SegCs;
|
TrapFrame->Cs = Context->SegCs;
|
||||||
TrapFrame->Eip = Context->Eip;
|
TrapFrame->Eip = Context->Eip;
|
||||||
|
TrapFrame->Eflags = Context->EFlags | FLAG_IF;
|
||||||
|
TrapFrame->Eflags &= ~(FLAG_VM | FLAG_NT | FLAG_IOPL);
|
||||||
TrapFrame->Esp = Context->Esp;
|
TrapFrame->Esp = Context->Esp;
|
||||||
TrapFrame->Ss = Context->SegSs;
|
TrapFrame->Ss = Context->SegSs;
|
||||||
/* FIXME: Should check for a v86 mode context here. */
|
/* FIXME: Should check for a v86 mode context here. */
|
||||||
|
|
Loading…
Reference in a new issue