Austin English : ntoskrnl.exe: Add stub for MmAllocateContiguousMemorySpecifyCache:.
Alexandre Julliard
julliard at winehq.org
Mon Jun 28 11:01:17 CDT 2010
Module: wine
Branch: master
Commit: 77f4c853f90e79935a5cf1e2b8b177ad70fafc6f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=77f4c853f90e79935a5cf1e2b8b177ad70fafc6f
Author: Austin English <austinenglish at gmail.com>
Date: Sun Jun 27 03:45:48 2010 -0500
ntoskrnl.exe: Add stub for MmAllocateContiguousMemorySpecifyCache:.
---
dlls/ntoskrnl.exe/ntoskrnl.c | 13 +++++++++++++
dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +-
include/ddk/wdm.h | 10 ++++++++++
3 files changed, 24 insertions(+), 1 deletions(-)
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index c22b81a..7823f73 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1275,6 +1275,19 @@ PVOID WINAPI MmAllocateContiguousMemory( SIZE_T size, PHYSICAL_ADDRESS highest_v
}
/***********************************************************************
+ * MmAllocateContiguousMemorySpecifyCache (NTOSKRNL.EXE.@)
+ */
+PVOID WINAPI MmAllocateContiguousMemorySpecifyCache( SIZE_T size,
+ PHYSICAL_ADDRESS lowest_valid_address,
+ PHYSICAL_ADDRESS highest_valid_address,
+ PHYSICAL_ADDRESS BoundaryAddressMultiple,
+ MEMORY_CACHING_TYPE CacheType )
+{
+ FIXME(": stub\n");
+ return NULL;
+}
+
+/***********************************************************************
* MmAllocatePagesForMdl (NTOSKRNL.EXE.@)
*/
PMDL WINAPI MmAllocatePagesForMdl(PHYSICAL_ADDRESS lowaddress, PHYSICAL_ADDRESS highaddress,
diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
index e6db4f7..0a816ab 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
+++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec
@@ -656,7 +656,7 @@
@ stub MmAdjustWorkingSetSize
@ stub MmAdvanceMdl
@ stdcall MmAllocateContiguousMemory(long double)
-@ stub MmAllocateContiguousMemorySpecifyCache
+@ stdcall MmAllocateContiguousMemorySpecifyCache(long double double double long)
@ stub MmAllocateMappingAddress
@ stdcall MmAllocateNonCachedMemory(long)
@ stdcall MmAllocatePagesForMdl(double double double long)
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index baede35..3fa355f 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1035,6 +1035,16 @@ typedef struct _KUSER_SHARED_DATA {
} DUMMYUNIONNAME;
} KSHARED_USER_DATA, *PKSHARED_USER_DATA;
+typedef enum _MEMORY_CACHING_TYPE {
+ MmNonCached = 0,
+ MmCached = 1,
+ MmWriteCombined = 2,
+ MmHardwareCoherentCached = 3,
+ MmNonCachedUnordered = 4,
+ MmUSWCCached = 5,
+ MmMaximumCacheType = 6
+} MEMORY_CACHING_TYPE;
+
typedef enum _MM_SYSTEM_SIZE
{
MmSmallSystem,
More information about the wine-cvs
mailing list