[Wine-devel] [1/8] hal: Add stub for ExAcquireFastMutex
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Пт Авг 1 13:55:11 MSD 2008
----------- следующая часть -----------
From c33b6ff65a396f9e32ca22a962b5bbbd3d64e3ec Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Fri, 25 Jul 2008 16:31:17 +0400
Subject: [PATCH] hal: Add stub for ExAcquireFastMutex
---
dlls/hal/hal.c | 11 +++++++++++
dlls/hal/hal.spec | 2 +-
include/ddk/wdm.h | 8 ++++++++
3 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index 253e01f..d41f757 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -54,6 +54,17 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
#ifdef DEFINE_FASTCALL1_ENTRYPOINT
+DEFINE_FASTCALL1_ENTRYPOINT( ExAcquireFastMutex )
+void WINAPI __regs_ExAcquireFastMutex(PFAST_MUTEX FastMutex)
+#else
+void WINAPI ExAcquireFastMutex(PFAST_MUTEX FastMutex)
+#endif
+{
+ FIXME( "(%p) stub!\n", FastMutex );
+}
+
+
+#ifdef DEFINE_FASTCALL1_ENTRYPOINT
DEFINE_FASTCALL1_ENTRYPOINT( KfAcquireSpinLock )
KIRQL WINAPI __regs_KfAcquireSpinLock(PKSPIN_LOCK SpinLock)
#else
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
index 84945eb..e469415 100644
--- a/dlls/hal/hal.spec
+++ b/dlls/hal/hal.spec
@@ -1,4 +1,4 @@
-@ stub ExAcquireFastMutex
+@ stdcall -norelay ExAcquireFastMutex(ptr)
@ stub ExReleaseFastMutex
@ stub ExTryToAcquireFastMutex
@ stub HalClearSoftwareInterrupt
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index bfbe0e9..e240c55 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -976,6 +976,14 @@ typedef struct _KUSER_SHARED_DATA {
} DUMMYUNIONNAME;
} KSHARED_USER_DATA, *PKSHARED_USER_DATA;
+typedef struct _FAST_MUTEX {
+ LONG Count;
+ PKTHREAD Owner;
+ ULONG Contention;
+ KEVENT Event;
+ ULONG OldIrql;
+} FAST_MUTEX, *PFAST_MUTEX;
+
NTSTATUS WINAPI ObCloseHandle(IN HANDLE handle);
#define IoGetCurrentIrpStackLocation(_Irp) ((_Irp)->Tail.Overlay.CurrentStackLocation)
--
1.5.4.5.GIT
Подробная информация о списке рассылки Wine-devel