2019-04-23 16:36:21 -07:00
|
|
|
From 33948747d5b11b2d61004632bf1038dc95060fd3 Mon Sep 17 00:00:00 2001
|
2015-02-21 02:55:16 -08:00
|
|
|
From: Christian Costa <titan.costa@gmail.com>
|
|
|
|
Date: Sun, 1 Feb 2015 12:53:09 +0100
|
2019-02-26 16:09:27 -08:00
|
|
|
Subject: [PATCH] ntoskrnl.exe: Implement MmMapLockedPages and
|
|
|
|
MmUnmapLockedPages.
|
2015-02-21 02:55:16 -08:00
|
|
|
|
|
|
|
---
|
2016-02-15 10:00:07 -08:00
|
|
|
dlls/ntoskrnl.exe/ntoskrnl.c | 20 ++++++++++++++++++++
|
2019-04-23 16:36:21 -07:00
|
|
|
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
|
|
|
|
2 files changed, 21 insertions(+), 1 deletion(-)
|
2015-02-21 02:55:16 -08:00
|
|
|
|
|
|
|
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
|
2019-04-23 16:36:21 -07:00
|
|
|
index c1e6a9c..cca3066 100644
|
2015-02-21 02:55:16 -08:00
|
|
|
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
|
|
|
|
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
|
2019-04-23 16:36:21 -07:00
|
|
|
@@ -2821,6 +2821,16 @@ VOID WINAPI MmLockPagableSectionByHandle(PVOID ImageSectionHandle)
|
2015-02-21 02:55:16 -08:00
|
|
|
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.@)
|
|
|
|
*/
|
|
|
|
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
2019-04-23 16:36:21 -07:00
|
|
|
index 633a8c4..cc74261 100644
|
2015-02-21 02:55:16 -08:00
|
|
|
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
|
|
|
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
|
2019-04-23 16:36:21 -07:00
|
|
|
@@ -703,7 +703,7 @@
|
2015-02-21 02:55:16 -08:00
|
|
|
@ stub MmLockPagableImageSection
|
|
|
|
@ stdcall MmLockPagableSectionByHandle(ptr)
|
2015-11-30 17:36:42 -08:00
|
|
|
@ stdcall MmMapIoSpace(int64 long long)
|
2015-02-21 02:55:16 -08:00
|
|
|
-@ stub MmMapLockedPages
|
|
|
|
+@ stdcall MmMapLockedPages(ptr long)
|
|
|
|
@ stdcall MmMapLockedPagesSpecifyCache(ptr long long ptr long long)
|
|
|
|
@ stub MmMapLockedPagesWithReservedMapping
|
|
|
|
@ stub MmMapMemoryDumpMdl
|
|
|
|
--
|
2019-04-23 16:36:21 -07:00
|
|
|
1.9.1
|
2015-02-21 02:55:16 -08:00
|
|
|
|