branch update for HEAD-2003091401
[reactos.git] / ntoskrnl / ke / timer.c
index db59f90..402c1ac 100644 (file)
@@ -137,6 +137,9 @@ NtDelayExecution(IN ULONG Alertable,
 }
 
 
+/*
+ * @implemented
+ */
 NTSTATUS STDCALL
 KeDelayExecutionThread (KPROCESSOR_MODE        WaitMode,
                        BOOLEAN         Alertable,
@@ -163,6 +166,9 @@ KeDelayExecutionThread (KPROCESSOR_MODE     WaitMode,
 }
 
 
+/*
+ * @implemented
+ */
 ULONG STDCALL
 KeQueryTimeIncrement(VOID)
 /*
@@ -175,6 +181,9 @@ KeQueryTimeIncrement(VOID)
 }
 
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeQuerySystemTime(PLARGE_INTEGER CurrentTime)
 /*
@@ -206,6 +215,9 @@ NtGetTickCount (PULONG      UpTime)
 }
 
 
+/*
+ * @implemented
+ */
 BOOLEAN STDCALL
 KeSetTimer (PKTIMER            Timer,
            LARGE_INTEGER       DueTime,
@@ -226,6 +238,9 @@ KeSetTimer (PKTIMER         Timer,
    return(KeSetTimerEx(Timer, DueTime, 0, Dpc));
 }
 
+/*
+ * @implemented
+ */
 BOOLEAN STDCALL
 KeSetTimerEx (PKTIMER          Timer,
              LARGE_INTEGER     DueTime,
@@ -282,6 +297,9 @@ KeSetTimerEx (PKTIMER               Timer,
 
 #endif /* LIBCAPTIVE */
 
+/*
+ * @implemented
+ */
 BOOLEAN STDCALL
 KeCancelTimer (PKTIMER Timer)
 /*
@@ -312,6 +330,9 @@ KeCancelTimer (PKTIMER      Timer)
 
 #ifndef LIBCAPTIVE
 
+/*
+ * @implemented
+ */
 BOOLEAN STDCALL
 KeReadStateTimer (PKTIMER      Timer)
 {
@@ -320,6 +341,9 @@ KeReadStateTimer (PKTIMER   Timer)
 
 #endif /* LIBCAPTIVE */
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeInitializeTimer (PKTIMER     Timer)
 /*
@@ -332,6 +356,9 @@ KeInitializeTimer (PKTIMER  Timer)
    KeInitializeTimerEx(Timer, NotificationTimer);
 }
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeInitializeTimerEx (PKTIMER           Timer,
                     TIMER_TYPE Type)
@@ -371,6 +398,9 @@ KeInitializeTimerEx (PKTIMER                Timer,
 
 #ifndef LIBCAPTIVE
 
+/*
+ * @implemented
+ */
 VOID STDCALL
 KeQueryTickCount(PLARGE_INTEGER TickCount)
 /*
@@ -436,7 +466,7 @@ KeExpireTimers(PKDPC Dpc,
    if (KeGetCurrentIrql() > DISPATCH_LEVEL)
    {
        DPRINT1("-----------------------------\n");
-       KeBugCheck(0);
+       KEBUGCHECK(0);
    }
 
 
@@ -516,6 +546,9 @@ KeInitializeTimerImpl(VOID)
    boot_time=SystemBootTime;
    system_time=boot_time;
 
+   SharedUserData->TickCountLow = 0;
+   SharedUserData->TickCountMultiplier = 167783691; // 2^24 * 1193182 / 119310
+
    DPRINT("Finished KeInitializeTimerImpl()\n");
 }