[NTOS]: Use system PTEs for drivers, both boot drivers and system-loaded drivers...
authorSir Richard <sir_richard@svn.reactos.org>
Sun, 21 Feb 2010 02:13:20 +0000 (02:13 +0000)
committerSir Richard <sir_richard@svn.reactos.org>
Sun, 21 Feb 2010 02:13:20 +0000 (02:13 +0000)
commit662fe5030b1cbf2abba956148129d151d40cbb96
treee00f808874050a213bc53f4ce3fc2f346ecfba8b
parent2445098aef933e8abc9c035cf979fa74fa85905f
[NTOS]: Use system PTEs for drivers, both boot drivers and system-loaded drivers. This removes the last user of the deprecated MmAllocateSection internal API. Another side-effect is that drivers will now have much higher load addresses (in the 0xF0000000 and higher range), as you would expect on Windows, plus increasing coverage and usage of system PTEs (which can still be optimized).
[NTOS]: Do not "copy" boot drivers from one set of pages to another set of pages. Instead, use system PTEs to map the boot drivers to a new VA, and set the PFNs to the original PFNs that the loader had obtained (and don't free that memory). This avoids some overhead.
[NTOS]: Now the only user of MmMapMemoryArea is the caching code, which I won't touch.

svn path=/trunk/; revision=45641
reactos/ntoskrnl/mm/section.c
reactos/ntoskrnl/mm/sysldr.c