mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2024-11-21 16:46:54 -08:00
fb87fbb11d
[ntoskrnl-Stubs] Removed patch to add stub for KeDelayExecutionThread (fixed upstream). Removed patch to add stub for PsRemoveLoadImageNotifyRoutine (fixed upstream). [wined3d-Geforce_425M] Removed patch to add wined3d detection for GeForce GT 425M (accepted upstream).
74 lines
2.5 KiB
Diff
74 lines
2.5 KiB
Diff
From c4b9b10d49301e248612f06b984ed9c6e9968673 Mon Sep 17 00:00:00 2001
|
|
From: Christian Costa <titan.costa@gmail.com>
|
|
Date: Sun, 1 Feb 2015 12:53:09 +0100
|
|
Subject: ntoskrnl.exe: Implement MmMapLockedPages and MmUnmapLockedPages.
|
|
|
|
---
|
|
dlls/ntoskrnl.exe/ntoskrnl.c | 20 ++++++++++++++++++++
|
|
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 4 ++--
|
|
2 files changed, 22 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
|
|
index 9c88479..9b5058b 100644
|
|
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
|
|
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
|
|
@@ -1991,6 +1991,16 @@ VOID WINAPI MmLockPagableSectionByHandle(PVOID ImageSectionHandle)
|
|
FIXME("stub %p\n", ImageSectionHandle);
|
|
}
|
|
|
|
+ /***********************************************************************
|
|
+ * MmMapLockedPages (NTOSKRNL.EXE.@)
|
|
+ */
|
|
+PVOID WINAPI MmMapLockedPages(PMDL MemoryDescriptorList, KPROCESSOR_MODE AccessMode)
|
|
+{
|
|
+ TRACE("%p %d\n", MemoryDescriptorList, AccessMode);
|
|
+ return MemoryDescriptorList->MappedSystemVa;
|
|
+}
|
|
+
|
|
+
|
|
/***********************************************************************
|
|
* MmMapLockedPagesSpecifyCache (NTOSKRNL.EXE.@)
|
|
*/
|
|
@@ -2056,6 +2066,16 @@ VOID WINAPI MmUnmapIoSpace( PVOID BaseAddress, SIZE_T NumberOfBytes )
|
|
}
|
|
|
|
|
|
+/***********************************************************************
|
|
+ * MmUnmapLockedPages (NTOSKRNL.EXE.@)
|
|
+ */
|
|
+void WINAPI MmUnmapLockedPages(PVOID BaseAddress, PMDLX MemoryDescriptorList)
|
|
+{
|
|
+ TRACE("%p %p\n", BaseAddress, MemoryDescriptorList);
|
|
+ /* Nothing to do */
|
|
+}
|
|
+
|
|
+
|
|
/***********************************************************************
|
|
* ObReferenceObjectByHandle (NTOSKRNL.EXE.@)
|
|
*/
|
|
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
|
index 7283510..0cd5c99 100644
|
|
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
|
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
|
@@ -689,7 +689,7 @@
|
|
@ stub MmLockPagableImageSection
|
|
@ stdcall MmLockPagableSectionByHandle(ptr)
|
|
@ stdcall MmMapIoSpace(int64 long long)
|
|
-@ stub MmMapLockedPages
|
|
+@ stdcall MmMapLockedPages(ptr long)
|
|
@ stdcall MmMapLockedPagesSpecifyCache(ptr long long ptr long long)
|
|
@ stub MmMapLockedPagesWithReservedMapping
|
|
@ stub MmMapMemoryDumpMdl
|
|
@@ -719,7 +719,7 @@
|
|
@ stdcall MmUnlockPagableImageSection(ptr)
|
|
@ stdcall MmUnlockPages(ptr)
|
|
@ stdcall MmUnmapIoSpace(ptr long)
|
|
-@ stub MmUnmapLockedPages
|
|
+@ stdcall MmUnmapLockedPages(ptr ptr)
|
|
@ stub MmUnmapReservedMapping
|
|
@ stub MmUnmapVideoDisplay
|
|
@ stub MmUnmapViewInSessionSpace
|
|
--
|
|
2.7.1
|
|
|