update for HEAD-2003091401
[reactos.git] / ntoskrnl / ke / timer.c
index 500e80b..f62766a 100644 (file)
@@ -130,6 +130,9 @@ NtDelayExecution(IN ULONG Alertable,
 }
 
 
+/*
+ * @implemented
+ */
 NTSTATUS STDCALL
 KeDelayExecutionThread (KPROCESSOR_MODE        WaitMode,
                        BOOLEAN         Alertable,
@@ -156,6 +159,9 @@ KeDelayExecutionThread (KPROCESSOR_MODE     WaitMode,
 }
 
 
+/*
+ * @implemented
+ */
 ULONG STDCALL
 KeQueryTimeIncrement(VOID)
 /*
@@ -168,6 +174,9 @@ KeQueryTimeIncrement(VOID)
 }
 
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeQuerySystemTime(PLARGE_INTEGER CurrentTime)
 /*
@@ -199,6 +208,9 @@ NtGetTickCount (PULONG      UpTime)
 }
 
 
+/*
+ * @implemented
+ */
 BOOLEAN STDCALL
 KeSetTimer (PKTIMER            Timer,
            LARGE_INTEGER       DueTime,
@@ -219,6 +231,9 @@ KeSetTimer (PKTIMER         Timer,
    return(KeSetTimerEx(Timer, DueTime, 0, Dpc));
 }
 
+/*
+ * @implemented
+ */
 BOOLEAN STDCALL
 KeSetTimerEx (PKTIMER          Timer,
              LARGE_INTEGER     DueTime,
@@ -273,6 +288,9 @@ KeSetTimerEx (PKTIMER               Timer,
    return(FALSE);
 }
 
+/*
+ * @implemented
+ */
 BOOLEAN STDCALL
 KeCancelTimer (PKTIMER Timer)
 /*
@@ -301,12 +319,18 @@ KeCancelTimer (PKTIMER    Timer)
    return(TRUE);
 }
 
+/*
+ * @implemented
+ */
 BOOLEAN STDCALL
 KeReadStateTimer (PKTIMER      Timer)
 {
    return(Timer->Header.SignalState);
 }
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeInitializeTimer (PKTIMER     Timer)
 /*
@@ -319,6 +343,9 @@ KeInitializeTimer (PKTIMER  Timer)
    KeInitializeTimerEx(Timer, NotificationTimer);
 }
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeInitializeTimerEx (PKTIMER           Timer,
                     TIMER_TYPE Type)
@@ -356,6 +383,9 @@ KeInitializeTimerEx (PKTIMER                Timer,
    Timer->TimerListEntry.Flink = Timer->TimerListEntry.Blink = NULL;
 }
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeQueryTickCount(PLARGE_INTEGER TickCount)
 /*
@@ -421,7 +451,7 @@ KeExpireTimers(PKDPC Dpc,
    if (KeGetCurrentIrql() > DISPATCH_LEVEL)
    {
        DPRINT1("-----------------------------\n");
-       KeBugCheck(0);
+       KEBUGCHECK(0);
    }
 
 
@@ -501,5 +531,8 @@ KeInitializeTimerImpl(VOID)
    boot_time=SystemBootTime;
    system_time=boot_time;
 
+   SharedUserData->TickCountLow = 0;
+   SharedUserData->TickCountMultiplier = 167783691; // 2^24 * 1193182 / 119310
+
    DPRINT("Finished KeInitializeTimerImpl()\n");
 }