[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH xenbus 1/2] make it compile for Windows 7
MmAllocateContiguousNodeMemory is available in Windows 8+, use MmAllocateContiguousMemory when building for older version. Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> --- src/xenbus/fdo.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c index 8ca8f52..7bd33a4 100644 --- a/src/xenbus/fdo.c +++ b/src/xenbus/fdo.c @@ -5079,12 +5079,17 @@ __FdoAllocateBuffer( High = SystemMaximumPhysicalAddress(); Align.QuadPart = Size; +#if _WIN32_WINNT >= _WIN32_WINNT_WIN8 Buffer = MmAllocateContiguousNodeMemory((SIZE_T)Size, Low, High, Align, PAGE_READWRITE, MM_ANY_NODE_OK); +#else + Buffer = MmAllocateContiguousMemory((SIZE_T)Size, + High); +#endif status = STATUS_NO_MEMORY; if (Buffer == NULL) -- 2.13.6 _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |