From 5daca85b5850adbc3437bdc1e7d142dd8084a8df Mon Sep 17 00:00:00 2001 From: David Welch Date: Mon, 30 Sep 2002 19:43:33 +0000 Subject: [PATCH] Fix for wrongly disabling interrupts causing system time loss. svn path=/trunk/; revision=3574 --- reactos/ntoskrnl/ke/i386/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/ntoskrnl/ke/i386/thread.c b/reactos/ntoskrnl/ke/i386/thread.c index e0f502eb74c..33a37922256 100644 --- a/reactos/ntoskrnl/ke/i386/thread.c +++ b/reactos/ntoskrnl/ke/i386/thread.c @@ -155,6 +155,8 @@ Ke386InitThreadWithContext(PKTHREAD Thread, PCONTEXT Context) TrapFrame->ErrorCode = 0; TrapFrame->Cs = Context->SegCs; TrapFrame->Eip = Context->Eip; + TrapFrame->Eflags = Context->EFlags | FLAG_IF; + TrapFrame->Eflags &= ~(FLAG_VM | FLAG_NT | FLAG_IOPL); TrapFrame->Esp = Context->Esp; TrapFrame->Ss = Context->SegSs; /* FIXME: Should check for a v86 mode context here. */