From: Eric Kohl Date: Sat, 7 Oct 2000 21:06:19 +0000 (+0000) Subject: Implemented missing KeRaiseIrqlToXxLevel() functions X-Git-Tag: backups/FreeLoader@12428~516 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=a2d079723ba31b06aff40b5fc964c3be3c925aa2;hp=5bea9979e8ea8bd8a4e193b86584c65d95ee995c;ds=sidebyside Implemented missing KeRaiseIrqlToXxLevel() functions svn path=/trunk/; revision=1389 --- 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)