Alex Henrie : ntoskrnl: Add MmGetPhysicalAddress semi-stub.
Alexandre Julliard
julliard at winehq.org
Fri Feb 25 07:30:23 CST 2022
Module: wine
Branch: oldstable
Commit: dfe1fa9abcbc071f32cf11b7e538c0633ad54e79
URL: https://source.winehq.org/git/wine.git/?a=commit;h=dfe1fa9abcbc071f32cf11b7e538c0633ad54e79
Author: Alex Henrie <alexhenrie24 at gmail.com>
Date: Fri Aug 6 21:13:44 2021 -0600
ntoskrnl: Add MmGetPhysicalAddress semi-stub.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47047
Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit c5c9c589743f921ce3dd0961cf051b0861fd75e7)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/ntoskrnl.exe/ntoskrnl.c | 11 +++++++++++
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 9dc5809614a..52172cc180d 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -2670,6 +2670,17 @@ BOOLEAN WINAPI MmIsAddressValid(PVOID VirtualAddress)
return !IsBadReadPtr(VirtualAddress, 1);
}
+/***********************************************************************
+ * MmGetPhysicalAddress (NTOSKRNL.EXE.@)
+ */
+PHYSICAL_ADDRESS WINAPI MmGetPhysicalAddress(void *virtual_address)
+{
+ PHYSICAL_ADDRESS ret;
+ FIXME("(%p): semi-stub\n", virtual_address);
+ ret.QuadPart = (ULONG_PTR)virtual_address;
+ return ret;
+}
+
/***********************************************************************
* MmMapIoSpace (NTOSKRNL.EXE.@)
*/
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index 145ea3099d7..54e8b6cb6cc 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -701,7 +701,7 @@
@ stub MmFreeMappingAddress
@ stdcall MmFreeNonCachedMemory(ptr long)
@ stub MmFreePagesFromMdl
-@ stub MmGetPhysicalAddress
+@ stdcall MmGetPhysicalAddress(ptr)
@ stub MmGetPhysicalMemoryRanges
@ stdcall MmGetSystemRoutineAddress(ptr)
@ stub MmGetVirtualForPhysical
More information about the wine-cvs
mailing list