return !IsBadWritePtr(VirtualAddress, 1);
}
+ /***********************************************************************
+ * MmMapLockedPages (NTOSKRNL.EXE.@)
+ */
+PVOID WINAPI MmMapLockedPages(PMDL MemoryDescriptorList,
+ KPROCESSOR_MODE AccessMode)
+{
+ TRACE("%p %d\n", MemoryDescriptorList, AccessMode);
+ return MemoryDescriptorList->MappedSystemVa;
+}
+
+/***********************************************************************
+ * MmMapLockedPagesSpecifyCache (NTOSKRNL.EXE.@)
+ */
+PVOID WINAPI MmMapLockedPagesSpecifyCache(PMDL MemoryDescriptorList,
+ KPROCESSOR_MODE AccessMode,
+ MEMORY_CACHING_TYPE CacheType,
+ PVOID BaseAddress,
+ ULONG BugCheckOnFailure,
+ MM_PAGE_PRIORITY Priority)
+{
+ TRACE("%p %d %u %p %u %u\n", MemoryDescriptorList, AccessMode,
+ CacheType, BaseAddress, BugCheckOnFailure, Priority);
+ return MemoryDescriptorList->MappedSystemVa;
+}
+
+ /***********************************************************************
+ * MmMapIoSpace (NTOSKRNL.EXE.@)
+ */
+ PVOID WINAPI MmMapIoSpace( PHYSICAL_ADDRESS PhysicalAddress, DWORD NumberOfBytes, DWORD CacheType )
+ {
+ FIXME( "stub: 0x%08x%08x, %d, %d\n", PhysicalAddress.u.HighPart, PhysicalAddress.u.LowPart, NumberOfBytes, CacheType );
+ return NULL;
+ }
+
/***********************************************************************
* MmPageEntireDriver (NTOSKRNL.EXE.@)
*/
TRACE("%p\n", AddrInSection);
}
+/***********************************************************************
+ * MmUnmapLockedPages (NTOSKRNL.EXE.@)
+ */
+void WINAPI MmUnmapLockedPages(PVOID BaseAddress, PMDL MemoryDescriptorList)
+{
+ TRACE("%p %p\n", BaseAddress, MemoryDescriptorList);
+}
+ /***********************************************************************
+ * MmUnmapIoSpace (NTOSKRNL.EXE.@)
+ */
+ VOID WINAPI MmUnmapIoSpace( PVOID BaseAddress, SIZE_T NumberOfBytes )
+ {
+ FIXME( "stub: %p, %lu\n", BaseAddress, NumberOfBytes );
+ }
/***********************************************************************
* ObfReferenceObject (NTOSKRNL.EXE.@)
@ stub MmLockPagableDataSection
@ stub MmLockPagableImageSection
@ stub MmLockPagableSectionByHandle
- @ stub MmMapIoSpace
+ @ stdcall MmMapIoSpace(long long long long)
-@ stub MmMapLockedPages
-@ stub MmMapLockedPagesSpecifyCache
+@ stdcall MmMapLockedPages(ptr long)
+@ stdcall MmMapLockedPagesSpecifyCache(ptr long long ptr long long)
@ stub MmMapLockedPagesWithReservedMapping
@ stub MmMapMemoryDumpMdl
@ stub MmMapUserAddressesToPage
@ stub MmSystemRangeStart
@ stub MmTrimAllSystemPagableMemory
@ stub MmUnlockPagableImageSection
-@ stub MmUnlockPages
+@ stdcall MmUnlockPages(ptr)
- @ stub MmUnmapIoSpace
+ @ stdcall MmUnmapIoSpace(ptr long)
-@ stub MmUnmapLockedPages
+@ stdcall MmUnmapLockedPages(ptr ptr)
@ stub MmUnmapReservedMapping
@ stub MmUnmapVideoDisplay
@ stub MmUnmapViewInSessionSpace