From 7e667e38c44227e2e86b36719bfcc6f951bfbcda Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Thu, 21 Aug 2008 18:13:42 +0000 Subject: [PATCH] Implement KxGetCurrentIrql, KxLowerIrql, KxRaiseIrql and KxRaiseIrqlToDpcLevel and use them for the Ke/Kf exports. svn path=/branches/ros-amd64-bringup/; revision=35512 --- reactos/ntoskrnl/ke/amd64/irql.c | 65 +++++++++-------------------- reactos/ntoskrnl/ntoskrnl_amd64.def | 8 ++-- 2 files changed, 24 insertions(+), 49 deletions(-) diff --git a/reactos/ntoskrnl/ke/amd64/irql.c b/reactos/ntoskrnl/ke/amd64/irql.c index 7a511eda2d1..53dcd3890b6 100644 --- a/reactos/ntoskrnl/ke/amd64/irql.c +++ b/reactos/ntoskrnl/ke/amd64/irql.c @@ -1,7 +1,7 @@ /* * PROJECT: ReactOS Kernel * LICENSE: GPL - See COPYING in the top level directory - * PURPOSE: Routines for IRQL-level support + * PURPOSE: Routines for IRQL support * PROGRAMMERS: Timo Kreuzer */ @@ -11,60 +11,35 @@ #define NDEBUG #include -#undef UNIMPLEMENTED - -#define UNIMPLEMENTED \ - FrLdrDbgPrint("Sorry, %s is unimplemented!\n", __FUNCTION__) - /* FUNCTIONS ****************************************************************/ -#undef KeGetCurrentIrql NTKERNELAPI KIRQL -KeGetCurrentIrql(VOID) +KxGetCurrentIrql(VOID) { - UNIMPLEMENTED; - return 0; -} - - -NTKERNELAPI -VOID -KfLowerIrql(IN KIRQL NewIrql) -{ - UNIMPLEMENTED; -} - -NTKERNELAPI -KIRQL -KfRaiseIrql(IN KIRQL NewIrql) -{ - UNIMPLEMENTED; - return 0; -} - -NTKERNELAPI -KIRQL -KeRaiseIrqlToDpcLevel(VOID) -{ - UNIMPLEMENTED; - return 0; -} - -NTKERNELAPI -KIRQL -KeRaiseIrqlToSynchLevel(VOID) -{ - UNIMPLEMENTED; - return 0; + return KeGetCurrentIrql(); } NTKERNELAPI VOID -KeLowerIrql(IN KIRQL NewIrql) +KxLowerIrql(IN KIRQL NewIrql) { - UNIMPLEMENTED; - return 0; + KeLowerIrql(NewIrql); } +NTKERNELAPI +KIRQL +KxRaiseIrql(IN KIRQL NewIrql) +{ + return KfRaiseIrql(NewIrql); +} + +NTKERNELAPI +KIRQL +KxRaiseIrqlToDpcLevel(VOID) +{ + return KeRaiseIrqlToDpcLevel(); +} + + /* EOF */ diff --git a/reactos/ntoskrnl/ntoskrnl_amd64.def b/reactos/ntoskrnl/ntoskrnl_amd64.def index 828417e6603..4bd04a00ff9 100644 --- a/reactos/ntoskrnl/ntoskrnl_amd64.def +++ b/reactos/ntoskrnl/ntoskrnl_amd64.def @@ -565,7 +565,7 @@ KeFindConfigurationNextEntry KeFlushEntireTb KeFlushQueuedDpcs KeGenericCallDpc -KeGetCurrentIrql +KeGetCurrentIrql=KxGetCurrentIrql KeGetCurrentThread KeGetRecommendedSharedDataAlignment KeInitializeApc @@ -596,7 +596,7 @@ KeLastBranchMSR KeLeaveCriticalRegion KeLeaveGuardedRegion KeLoaderBlock -KeLowerIrql +KeLowerIrql=KxLowerIrql KeNumberProcessors KeProfileInterruptWithSource KePulseEvent @@ -606,7 +606,7 @@ KeQueryPrcbAddress KeQueryPriorityThread KeQueryRuntimeThread KeQueryTimeIncrement -KeRaiseIrqlToDpcLevel +KeRaiseIrqlToDpcLevel=KxRaiseIrqlToDpcLevel KeRaiseUserException KeReadStateEvent KeReadStateMutant @@ -676,7 +676,7 @@ KeUserModeCallback KeWaitForMultipleObjects KeWaitForMutexObject KeWaitForSingleObject -KfRaiseIrql +KfRaiseIrql=KxRaiseIrql KiBugCheckData KiCheckForKernelApcDelivery KiCpuId