[ros-diffs] [ros-arm-bringup] 34075: - Implement KiComputeTimerTableIndex and stub KeUpdateRunTime und KeUpdateSystemTime. - Hitting checkpoint in trap.c: DPC/Timer Delivery! - Must now implement clock interrupt in HAL.

ros-arm-bringup at svn.reactos.org ros-arm-bringup at svn.reactos.org
Wed Jun 25 07:01:32 CEST 2008


Author: ros-arm-bringup
Date: Wed Jun 25 00:01:31 2008
New Revision: 34075

URL: http://svn.reactos.org/svn/reactos?rev=34075&view=rev
Log:
- Implement KiComputeTimerTableIndex and stub KeUpdateRunTime und KeUpdateSystemTime.
- Hitting checkpoint in trap.c: DPC/Timer Delivery!
- Must now implement clock interrupt in HAL.

Modified:
    trunk/reactos/ntoskrnl/ke/arm/stubs.c
    trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s

Modified: trunk/reactos/ntoskrnl/ke/arm/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/arm/stubs.c?rev=34075&r1=34074&r2=34075&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ke/arm/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/arm/stubs.c [iso-8859-1] Wed Jun 25 00:01:31 2008
@@ -9,3 +9,38 @@
 ULONG KeProcessorLevel;
 ULONG KeProcessorRevision;
 ULONG KeFeatureBits;
+
+ULONG
+KiComputeTimerTableIndex(IN LONGLONG DueTime)
+{
+    ULONG Hand;
+    DPRINT1("DueTime: %I64x Max: %lx\n", DueTime, KeMaximumIncrement);
+    
+    //
+    // Compute the timer table index
+    //
+    Hand = (DueTime / KeMaximumIncrement);
+    DPRINT1("HAND: %lx\n", Hand);
+    Hand %= TIMER_TABLE_SIZE;
+    DPRINT1("HAND: %lx\n", Hand);
+    return Hand;
+}
+
+VOID
+NTAPI
+KeUpdateSystemTime(IN PKTRAP_FRAME TrapFrame,
+                   IN KIRQL Irql,
+                   IN ULONG Increment)
+{
+    UNIMPLEMENTED;
+    while (TRUE);
+}
+
+VOID
+NTAPI
+KeUpdateRunTime(IN PKTRAP_FRAME TrapFrame,
+                IN KIRQL Irql)
+{
+    UNIMPLEMENTED;
+    while (TRUE);  
+}

Modified: trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s?rev=34075&r1=34074&r2=34075&view=diff
==============================================================================
--- trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ke/arm/stubs_asm.s [iso-8859-1] Wed Jun 25 00:01:31 2008
@@ -25,8 +25,6 @@
 GENERATE_ARM_STUB KeSaveStateForHibernate 
 GENERATE_ARM_STUB KeSetDmaIoCoherency 
 GENERATE_ARM_STUB KeSynchronizeExecution 
-GENERATE_ARM_STUB KeUpdateRunTime 
-GENERATE_ARM_STUB KeUpdateSystemTime 
 GENERATE_ARM_STUB KeUserModeCallback 
 GENERATE_ARM_STUB NtSetLdtEntries
 GENERATE_ARM_STUB NtRaiseException
@@ -45,7 +43,6 @@
 GENERATE_ARM_STUB KiDispatchException
 GENERATE_ARM_STUB KiSwapProcess
 GENERATE_ARM_STUB KeSwitchKernelStack
-GENERATE_ARM_STUB KiComputeTimerTableIndex
 
 //
 // Traps, Debugging and Execeptions



More information about the Ros-diffs mailing list