]> xenbits.xensource.com Git - pvdrivers/win/xencons.git/commitdiff
Update util.h
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 25 Jan 2018 14:16:12 +0000 (14:16 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Thu, 25 Jan 2018 14:16:12 +0000 (14:16 +0000)
XENCONS does not use much of the functionality in util.h, including the
__AllocatePages() function modified by this change, however
it is good to keep the header in-sync with the other drivers.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xencons/util.h

index 7b92fc657be0dc3a6bf391fd738ffb9ef9f5dc79..f10eb8b7b05eb45e887348803f28bd8e30238e06 100644 (file)
@@ -219,7 +219,11 @@ __AllocatePages(
     if (MdlMappedSystemVa == NULL)
         goto fail3;
 
-    ASSERT3P(MdlMappedSystemVa, ==, Mdl->MappedSystemVa);
+    Mdl->StartVa = PAGE_ALIGN(MdlMappedSystemVa);
+
+    ASSERT3U(Mdl->ByteOffset, ==, 0);
+    ASSERT3P(Mdl->StartVa, ==, MdlMappedSystemVa);
+    ASSERT3P(Mdl->MappedSystemVa, ==, MdlMappedSystemVa);
 
     RtlZeroMemory(MdlMappedSystemVa, Mdl->ByteCount);