From 76ae295a090745950483595a56a23db9599bbcc7 Mon Sep 17 00:00:00 2001 From: Louis Lenders Date: Fri, 13 Nov 2009 19:02:08 +0100 Subject: [PATCH] ntoskrnl.exe: Add stub for MmAllocateContiguousMemory. --- dlls/ntoskrnl.exe/ntoskrnl.c | 9 +++++++++ dlls/ntoskrnl.exe/ntoskrnl.exe.spec | 2 +- include/ddk/wdm.h | 1 + 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c index 3404599ee7a..06971ad3d02 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/ntoskrnl.c @@ -1117,6 +1117,15 @@ PVOID WINAPI MmAllocateNonCachedMemory( SIZE_T size ) return VirtualAlloc( NULL, size, MEM_RESERVE|MEM_COMMIT, PAGE_READWRITE|PAGE_NOCACHE ); } +/*********************************************************************** + * MmAllocateContiguousMemory (NTOSKRNL.EXE.@) + */ +PVOID WINAPI MmAllocateContiguousMemory( SIZE_T size, PHYSICAL_ADDRESS highest_valid_address ) +{ + FIXME( "%lu, %s stub\n", size, wine_dbgstr_longlong(highest_valid_address.QuadPart) ); + return NULL; +} + /*********************************************************************** * MmAllocatePagesForMdl (NTOSKRNL.EXE.@) */ diff --git a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec index 642b274801c..b85fcb9bd83 100644 --- a/dlls/ntoskrnl.exe/ntoskrnl.exe.spec +++ b/dlls/ntoskrnl.exe/ntoskrnl.exe.spec @@ -655,7 +655,7 @@ @ stub MmAddVerifierThunks @ stub MmAdjustWorkingSetSize @ stub MmAdvanceMdl -@ stub MmAllocateContiguousMemory +@ stdcall MmAllocateContiguousMemory(long double) @ stub MmAllocateContiguousMemorySpecifyCache @ stub MmAllocateMappingAddress @ stdcall MmAllocateNonCachedMemory(long) diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h index 096fca5ff3f..df0ad5dd488 100644 --- a/include/ddk/wdm.h +++ b/include/ddk/wdm.h @@ -1059,6 +1059,7 @@ void WINAPI KeQuerySystemTime(LARGE_INTEGER*); void WINAPI KeQueryTickCount(LARGE_INTEGER*); ULONG WINAPI KeQueryTimeIncrement(void); +PVOID WINAPI MmAllocateContiguousMemory(SIZE_T,PHYSICAL_ADDRESS); PVOID WINAPI MmAllocateNonCachedMemory(SIZE_T); PMDL WINAPI MmAllocatePagesForMdl(PHYSICAL_ADDRESS,PHYSICAL_ADDRESS,PHYSICAL_ADDRESS,SIZE_T); void WINAPI MmFreeNonCachedMemory(PVOID,SIZE_T);