[NTOSKRNL]
- Add hacks to MmMapViewInSessionSpace and MmUnmapViewInSessionSpace to check for legacy (non ARM3) sections (image sections) and (un)map them in system space instead.
- Fix MmCommitSessionMappedView (it wasn't resetting the PointerPte to the start, when processing the PTE range a second time)
- Remove an ASSERT that didn't allow unmapping session space mappings, since that works (see CORE-6729)
- Change a write to a PTE to using MI_WRITE_VALID_PTE

git-svn-id: svn://svn.reactos.org/reactos/trunk@61081 97493ccd-5924-5043-b1f5-66cb403b36ce
Revert a change from the previous version. MI_WRITE_VALID_PTE only works on invalid PTEs. Thanks to Thomas for noticing.

git-svn-id: svn://svn.reactos.org/reactos/trunk@61083 97493ccd-5924-5043-b1f5-66cb403b36ce
[FORMATTING]
Fix indentation. No code changes!

git-svn-id: svn://svn.reactos.org/reactos/trunk@61084 97493ccd-5924-5043-b1f5-66cb403b36ce
[FORMATTING]
Fix indentation. No code changes!

git-svn-id: svn://svn.reactos.org/reactos/trunk@61085 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]
- Use MI_IS_MAPPED_PTE instead of unportable bit fiddling
- Use MiDecrementPageTableReferences instead of manually messing with MmWorkingSetList, which is not portable
- Make MmGetPhysicalAddress portable

git-svn-id: svn://svn.reactos.org/reactos/trunk@61086 97493ccd-5924-5043-b1f5-66cb403b36ce