From a2d079723ba31b06aff40b5fc964c3be3c925aa2 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sat, 7 Oct 2000 21:06:19 +0000 Subject: [PATCH] Implemented missing KeRaiseIrqlToXxLevel() functions svn path=/trunk/; revision=1389 --- reactos/include/ddk/kefuncs.h | 12 ++++++++ reactos/ntoskrnl/hal/x86/irql.c | 51 +++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/reactos/include/ddk/kefuncs.h b/reactos/include/ddk/kefuncs.h index 0e6504ccac2..28280c76491 100644 --- a/reactos/include/ddk/kefuncs.h +++ b/reactos/include/ddk/kefuncs.h @@ -199,6 +199,18 @@ KeRaiseIrql ( PKIRQL OldIrql ); +KIRQL +STDCALL +KeRaiseIrqlToDpcLevel ( + VOID + ); + +KIRQL +STDCALL +KeRaiseIrqlToSynchLevel ( + VOID + ); + /* * FUNCTION: Raises a user mode exception * ARGUMENTS: diff --git a/reactos/ntoskrnl/hal/x86/irql.c b/reactos/ntoskrnl/hal/x86/irql.c index d6f49532935..fcfe7135e1a 100644 --- a/reactos/ntoskrnl/hal/x86/irql.c +++ b/reactos/ntoskrnl/hal/x86/irql.c @@ -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)