From: Paul Durrant Date: Thu, 25 Jan 2018 14:16:12 +0000 (+0000) Subject: Update util.h X-Git-Tag: 9.0.0-rc1~32 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=443a645cafb0d7a2a5b7eff4c1a5e9976025a720;p=pvdrivers%2Fwin%2Fxencons.git Update util.h 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 --- diff --git a/src/xencons/util.h b/src/xencons/util.h index 7b92fc6..f10eb8b 100644 --- a/src/xencons/util.h +++ b/src/xencons/util.h @@ -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);