Implemented missing KeRaiseIrqlToXxLevel() functions
authorEric Kohl <eric.kohl@reactos.org>
Sat, 7 Oct 2000 21:06:19 +0000 (21:06 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 7 Oct 2000 21:06:19 +0000 (21:06 +0000)
svn path=/trunk/; revision=1389

reactos/include/ddk/kefuncs.h
reactos/ntoskrnl/hal/x86/irql.c

index 0e6504c..28280c7 100644 (file)
@@ -199,6 +199,18 @@ KeRaiseIrql (
        PKIRQL  OldIrql
        );
 
+KIRQL
+STDCALL
+KeRaiseIrqlToDpcLevel (
+       VOID
+       );
+
+KIRQL
+STDCALL
+KeRaiseIrqlToSynchLevel (
+       VOID
+       );
+
 /*
  * FUNCTION: Raises a user mode exception
  * ARGUMENTS:
index d6f4953..fcfe713 100644 (file)
@@ -309,6 +309,57 @@ KeRaiseIrql (
 }
 
 
+/**********************************************************************
+ * NAME                                                        EXPORTED
+ *     KeRaiseIrqlToDpcLevel
+ *
+ * DESCRIPTION
+ *     Raises the hardware priority (irql) to DISPATCH level
+ *
+ * ARGUMENTS
+ *     None
+ *
+ * RETURN VALUE
+ *     Previous irq level
+ *
+ * NOTES
+ *     Calls KfRaiseIrql
+ */
+
+KIRQL
+STDCALL
+KeRaiseIrqlToDpcLevel (VOID)
+{
+       return KfRaiseIrql (DISPATCH_LEVEL);
+}
+
+
+/**********************************************************************
+ * NAME                                                        EXPORTED
+ *     KeRaiseIrqlToSynchLevel
+ *
+ * DESCRIPTION
+ *     Raises the hardware priority (irql) to CLOCK2 level
+ *
+ * ARGUMENTS
+ *     None
+ *
+ * RETURN VALUE
+ *     Previous irq level
+ *
+ * NOTES
+ *     Calls KfRaiseIrql
+ */
+
+KIRQL
+STDCALL
+KeRaiseIrqlToSynchLevel (VOID)
+{
+//     return KfRaiseIrql (CLOCK2_LEVEL);
+       UNIMPLEMENTED;
+}
+
+
 BOOLEAN STDCALL HalBeginSystemInterrupt (ULONG Vector,
                                         KIRQL Irql,
                                         PKIRQL OldIrql)