mirror of
https://github.com/reactos/reactos.git
synced 2024-07-10 14:45:06 +00:00
[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:
parent
640136731e
commit
aa52dc7498
|
@ -115,7 +115,8 @@ typedef ULONG_PTR SWAPENTRY;
|
||||||
PAGE_EXECUTE_READ | \
|
PAGE_EXECUTE_READ | \
|
||||||
PAGE_EXECUTE_READWRITE | \
|
PAGE_EXECUTE_READWRITE | \
|
||||||
PAGE_EXECUTE_WRITECOPY | \
|
PAGE_EXECUTE_WRITECOPY | \
|
||||||
PAGE_NOACCESS)
|
PAGE_NOACCESS | \
|
||||||
|
PAGE_NOCACHE)
|
||||||
|
|
||||||
#define PAGE_IS_READABLE \
|
#define PAGE_IS_READABLE \
|
||||||
(PAGE_READONLY | \
|
(PAGE_READONLY | \
|
||||||
|
|
|
@ -4484,6 +4484,8 @@ MmMapViewOfSection(IN PVOID SectionObject,
|
||||||
return STATUS_INVALID_PAGE_PROTECTION;
|
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;
|
Section = (PROS_SECTION_OBJECT)SectionObject;
|
||||||
AddressSpace = &Process->Vm;
|
AddressSpace = &Process->Vm;
|
||||||
|
|
Loading…
Reference in a new issue