Author: tfaber
Date: Fri Aug 7 15:52:04 2015
New Revision: 68611
URL:
http://svn.reactos.org/svn/reactos?rev=68611&view=rev
Log:
[NTOS:MM]
- Allow (and then ignore) PAGE_NOCACHE in the protection flags for MmMapViewOfSection
CORE-9808
Modified:
trunk/reactos/ntoskrnl/include/internal/mm.h
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/include/internal/mm.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/include/internal/…
==============================================================================
--- trunk/reactos/ntoskrnl/include/internal/mm.h [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/include/internal/mm.h [iso-8859-1] Fri Aug 7 15:52:04 2015
@@ -115,7 +115,8 @@
PAGE_EXECUTE_READ | \
PAGE_EXECUTE_READWRITE | \
PAGE_EXECUTE_WRITECOPY | \
- PAGE_NOACCESS)
+ PAGE_NOACCESS | \
+ PAGE_NOCACHE)
#define PAGE_IS_READABLE \
(PAGE_READONLY | \
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Fri Aug 7 15:52:04 2015
@@ -4484,6 +4484,8 @@
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;