[Wine-patches] [eterhack 1/7] hal: Add stubs for Ke{Lower, Raise}Irql.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Чт Мар 26 19:53:55 MSK 2009


---
 dlls/hal/hal.c    |   10 ++++++++++
 dlls/hal/hal.spec |    4 ++--
 include/ddk/wdm.h |    2 ++
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index ca855eb..409c77a 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -154,6 +154,16 @@ LONGLONG WINAPI KeQueryPerformanceCounter(LONGLONG *PerformanceFrequency)
     return 0;
 }
 
+void WINAPI KeLowerIrql(KIRQL NewIrql)
+{
+    FIXME( "(%u) stub!\n", NewIrql );
+}
+
+void WINAPI KeRaiseIrql(KIRQL NewIrql, PKIRQL OldIrql)
+{
+    FIXME( "(%u %p) stub!\n", NewIrql, OldIrql );
+}
+
 void WINAPI KeStallExecutionProcessor(ULONG MicroSeconds)
 {
     struct timespec ts = {0, MicroSeconds * 1000};
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
index f851734..7f8f6f7 100644
--- a/dlls/hal/hal.spec
+++ b/dlls/hal/hal.spec
@@ -71,9 +71,9 @@
 @ stub KeAcquireSpinLock
 @ stub KeFlushWriteBuffer
 @ stdcall KeGetCurrentIrql()
-@ stub KeLowerIrql
+@ stdcall KeLowerIrql(long)
 @ stdcall -ret64 KeQueryPerformanceCounter(ptr)
-@ stub KeRaiseIrql
+@ stdcall KeRaiseIrql(long ptr)
 @ stub KeRaiseIrqlToDpcLevel
 @ stub KeRaiseIrqlToSynchLevel
 @ stub KeReleaseSpinLock
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 670cab9..93d9496 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1169,10 +1169,12 @@ NTSTATUS  WINAPI KeDelayExecutionThread(KPROCESSOR_MODE,BOOLEAN,PLARGE_INTEGER);
 PKTHREAD  WINAPI KeGetCurrentThread(void);
 void      WINAPI KeInitializeEvent(PRKEVENT,EVENT_TYPE,BOOLEAN);
 void      WINAPI KeInitializeSemaphore(PRKSEMAPHORE,LONG,LONG);
+void      WINAPI KeLowerIrql(KIRQL);
 LONGLONG  WINAPI KeQueryPerformanceCounter(LONGLONG*);
 void      WINAPI KeQuerySystemTime(LARGE_INTEGER*);
 void      WINAPI KeQueryTickCount(LARGE_INTEGER*);
 ULONG     WINAPI KeQueryTimeIncrement(void);
+void      WINAPI KeRaiseIrql(KIRQL,PKIRQL);
 LONG      WINAPI KeReleaseSemaphore(PRKSEMAPHORE,KPRIORITY,LONG,BOOLEAN);
 LONG      WINAPI KeResetEvent(PRKEVENT);
 LONG      WINAPI KeSetEvent(PRKEVENT,KPRIORITY,BOOLEAN);
-- 
1.6.1.3.GIT



Подробная информация о списке рассылки Wine-patches