[Wine-patches] [eterhack 05/24] ntoskrnl.exe: Add stubs for ExfInterlocked{InsertHead, InsertTail, RemoveHead}List.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Мар 4 12:25:14 MSK 2009


---
 dlls/ntoskrnl.exe/ntoskrnl.c        |   55 +++++++++++++++++++++++++++++++++++
 dlls/ntoskrnl.exe/ntoskrnl.exe.spec |    6 ++--
 2 files changed, 58 insertions(+), 3 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index aedff9c..5e4cc2c 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1887,6 +1887,61 @@ NTSTATUS WINAPI ExInitializeZone( PZONE_HEADER Zone, ULONG BlockSize,
 
 
 /***********************************************************************
+ *           ExfInterlockedInsertHeadList   (NTOSKRNL.EXE.@)
+ */
+#ifdef DEFINE_FASTCALL2_ENTRYPOINT
+DEFINE_FASTCALL2_ENTRYPOINT( ExfInterlockedInsertHeadList )
+PLIST_ENTRY WINAPI __regs_ExfInterlockedInsertHeadList( PLIST_ENTRY ListHead,
+                                                        PLIST_ENTRY ListEntry,
+                                                        PKSPIN_LOCK Lock )
+#else
+PLIST_ENTRY WINAPI ExfInterlockedInsertHeadList( PLIST_ENTRY ListHead,
+                                                 PLIST_ENTRY ListEntry,
+                                                 PKSPIN_LOCK Lock )
+#endif
+{
+    FIXME( "stub: %p %p %p\n", ListHead, ListEntry, Lock );
+    return NULL;
+}
+
+
+/***********************************************************************
+ *           ExfInterlockedInsertTailList   (NTOSKRNL.EXE.@)
+ */
+#ifdef DEFINE_FASTCALL2_ENTRYPOINT
+DEFINE_FASTCALL2_ENTRYPOINT( ExfInterlockedInsertTailList )
+PLIST_ENTRY WINAPI __regs_ExfInterlockedInsertTailList( PLIST_ENTRY ListHead,
+                                                        PLIST_ENTRY ListEntry,
+                                                        PKSPIN_LOCK Lock )
+#else
+PLIST_ENTRY WINAPI ExfInterlockedInsertTailList( PLIST_ENTRY ListHead,
+                                                 PLIST_ENTRY ListEntry,
+                                                 PKSPIN_LOCK Lock )
+#endif
+{
+    FIXME( "stub: %p %p %p\n", ListHead, ListEntry, Lock );
+    return NULL;
+}
+
+
+/***********************************************************************
+ *           ExfInterlockedRemoveHeadList   (NTOSKRNL.EXE.@)
+ */
+#ifdef DEFINE_FASTCALL2_ENTRYPOINT
+DEFINE_FASTCALL2_ENTRYPOINT( ExfInterlockedRemoveHeadList )
+PLIST_ENTRY WINAPI __regs_ExfInterlockedRemoveHeadList( PLIST_ENTRY ListHead,
+                                                        PKSPIN_LOCK Lock )
+#else
+PLIST_ENTRY WINAPI ExfInterlockedRemoveHeadList( PLIST_ENTRY ListHead,
+                                                 PKSPIN_LOCK Lock )
+#endif
+{
+    FIXME( "stub: %p %p\n", ListHead, Lock );
+    return NULL;
+}
+
+
+/***********************************************************************
  *           KeGetCurrentThread   (NTOSKRNL.EXE.@)
  */
 PKTHREAD WINAPI KeGetCurrentThread(void)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index d1e69db..064d7ab 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -18,11 +18,11 @@
 @ stub ExfAcquirePushLockShared
 @ stub ExfInterlockedAddUlong
 @ stub ExfInterlockedCompareExchange64
-@ stub ExfInterlockedInsertHeadList
-@ stub ExfInterlockedInsertTailList
+@ stdcall -norelay ExfInterlockedInsertHeadList(ptr ptr ptr)
+@ stdcall -norelay ExfInterlockedInsertTailList(ptr ptr ptr)
 @ stub ExfInterlockedPopEntryList
 @ stub ExfInterlockedPushEntryList
-@ stub ExfInterlockedRemoveHeadList
+@ stdcall -norelay ExfInterlockedRemoveHeadList(ptr ptr)
 @ stub ExfReleasePushLock
 @ stub Exfi386InterlockedDecrementLong
 @ stub Exfi386InterlockedExchangeUlong
-- 
1.6.1.3.GIT



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