[MM]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 30 Nov 2009 00:24:55 +0000 (00:24 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Mon, 30 Nov 2009 00:24:55 +0000 (00:24 +0000)
commit2fdf38accfa8c2043cf54696ab6bb47c79776886
tree83346fd4e426c7bf12b91dd576bc0a5bb019adb8
parent8a4f13825c0f7e59e5d555201c6caf693a014028
[MM]
Rewrite the broken MmFindGap* functions. They were first searching for a gap between the already allocated memory areas and only after that trying to find a gap below or above these areas. This bug helped with 2 things. 1. Not overwriting the kernel mapping, because no memory area was defined for it and 2. allow csrss to map video memory at virtual adress 0x000a0000. The former is fixed by adding the appropriate memory area, the latter is hacked away, by making the addressing range start at 0x00100000. Also use MmHighestUserAddress instead of MmSystemRangestart - 1. Simplyfy overcomplicated code. Fix a DPRINT

svn path=/branches/ros-amd64-bringup/; revision=44327
reactos/ntoskrnl/mm/marea.c
reactos/ntoskrnl/mm/mminit.c