[NTOS:MM]

- Allow (and then ignore) PAGE_NOCACHE in the protection flags for MmMapViewOfSection
CORE-9808

svn path=/trunk/; revision=68611
This commit is contained in:
Thomas Faber 2015-08-07 15:52:04 +00:00
parent 640136731e
commit aa52dc7498
2 changed files with 4 additions and 1 deletions

View file

@ -115,7 +115,8 @@ typedef ULONG_PTR SWAPENTRY;
PAGE_EXECUTE_READ | \
PAGE_EXECUTE_READWRITE | \
PAGE_EXECUTE_WRITECOPY | \
PAGE_NOACCESS)
PAGE_NOACCESS | \
PAGE_NOCACHE)
#define PAGE_IS_READABLE \
(PAGE_READONLY | \

View file

@ -4484,6 +4484,8 @@ MmMapViewOfSection(IN PVOID SectionObject,
return STATUS_INVALID_PAGE_PROTECTION;
}
/* FIXME: We should keep this, but it would break code checking equality */
Protect &= PAGE_NOCACHE;
Section = (PROS_SECTION_OBJECT)SectionObject;
AddressSpace = &Process->Vm;