Moved KiTimerSystemAuditing flag to main.c so it can set when everything is up and running. Also, turn the time auditing back on.

svn path=/trunk/; revision=10320
This commit is contained in:
James Tabor 2004-07-30 19:28:49 +00:00
parent b31a0f3811
commit 3ba2c74617
2 changed files with 10 additions and 4 deletions

View 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();

View 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);