ntoskrnl: Add MmGetPhysicalAddress semi-stub.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47047
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
(cherry picked from commit c5c9c58974)
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
This commit is contained in:
Alex Henrie 2021-08-06 21:13:44 -06:00 committed by Michael Stefaniuc
parent 72a7c1991c
commit dfe1fa9abc
2 changed files with 12 additions and 1 deletions

View File

@ -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.@)
*/

View File

@ -701,7 +701,7 @@
@ stub MmFreeMappingAddress
@ stdcall MmFreeNonCachedMemory(ptr long)
@ stub MmFreePagesFromMdl
@ stub MmGetPhysicalAddress
@ stdcall MmGetPhysicalAddress(ptr)
@ stub MmGetPhysicalMemoryRanges
@ stdcall MmGetSystemRoutineAddress(ptr)
@ stub MmGetVirtualForPhysical