Moved KiTimerSystemAuditing flag to main.c so it can set when everything is up and...
authorJames Tabor <james.tabor@reactos.org>
Fri, 30 Jul 2004 19:28:49 +0000 (19:28 +0000)
committerJames Tabor <james.tabor@reactos.org>
Fri, 30 Jul 2004 19:28:49 +0000 (19:28 +0000)
svn path=/trunk/; revision=10320

reactos/ntoskrnl/ke/i386/irq.c
reactos/ntoskrnl/ke/main.c

index ea3fb39..e7d17be 100644 (file)
@@ -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();
index 750eed4..31fbe9b 100644 (file)
@@ -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);