diff --git a/reactos/ntoskrnl/ke/i386/irq.c b/reactos/ntoskrnl/ke/i386/irq.c index ea3fb39086a..e7d17beca3e 100644 --- a/reactos/ntoskrnl/ke/i386/irq.c +++ b/reactos/ntoskrnl/ke/i386/irq.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: irq.c,v 1.43 2004/04/16 01:28:15 jimtabor Exp $ +/* $Id: irq.c,v 1.44 2004/07/30 19:28:49 jimtabor Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/ke/i386/irq.c @@ -520,12 +520,12 @@ KiInterruptDispatch (ULONG irq, PKIRQ_TRAPFRAME Trapframe) Ke386DisableInterrupts(); HalEndSystemInterrupt (old_level, 0); -#if 0 + if (old_level==PASSIVE_LEVEL) { KiUpdateProcessThreadTime(); } -#endif + if (old_level==PASSIVE_LEVEL && Trapframe->Cs != KERNEL_CS) { CurrentThread = KeGetCurrentThread(); diff --git a/reactos/ntoskrnl/ke/main.c b/reactos/ntoskrnl/ke/main.c index 750eed49303..31fbe9b3ab7 100644 --- a/reactos/ntoskrnl/ke/main.c +++ b/reactos/ntoskrnl/ke/main.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: main.c,v 1.188 2004/06/19 08:48:01 navaraf Exp $ +/* $Id: main.c,v 1.189 2004/07/30 19:28:48 jimtabor Exp $ * * PROJECT: ReactOS kernel * FILE: ntoskrnl/ke/main.c @@ -95,6 +95,7 @@ static ULONG LastKrnlPhysAddr; static ULONG LastKernelAddress; volatile BOOLEAN Initialized = FALSE; extern ULONG MmCoreDumpType; +extern CHAR KiTimerSystemAuditing; extern PVOID Ki386InitialStackArray[MAXIMUM_PROCESSORS]; @@ -821,6 +822,11 @@ ExpInitializeExecutive(VOID) KEBUGCHECKEX(SESSION5_INITIALIZATION_FAILED, Status, 1, 0, 0); } } +/* + * Tell ke/timer.c it's okay to run. + */ + + KiTimerSystemAuditing = 1; NtClose(ThreadHandle); NtClose(ProcessHandle);