mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 22:16:04 +00:00
A free Windows-compatible Operating System - mirrored from GitHub
![]() - Cleanup some externs that were never referenced in mminit.c. - Remove MiShutdownMemoryManager since it was dead code. - There is no need to define the MiKseg0Start/End variables and loop through the memory descriptors to find the last kernel image. We already have this information through LoaderPagesSpanned saved in MmBootImageSize. - Removed these variables, code that depended on them, and MiGetLastKernelAddress, and switch to just using MmBootImageSize, which simplifies things a lot. - Also simplify the way that the initial memory latout is setup. Now the PFN database will always start after MmBootImageSize + KSEG0_BASE, instead of relying on the fact FreeLDR, on certain machines, may have had leftover space in the 6MB allocation that it makes (And worse, assuming FreeLDR on all architectures will allocate 6MB). - This standardizes the PFN database address and makes the code portable. - Same for the nonpaged pool address. - Should not call MmInitializeHandBuiltProcess for the idle process -- this will be called for the system process in PsCreateProcess. - The only thing we need, as the comment says, is the kernel MADDRESS_SPACE, so just initialize the lock for it. - Do not zero MmStats since the load-linker takes care of that for us since it's a global. svn path=/trunk/; revision=41710 |
||
---|---|---|
irc | ||
reactos | ||
rosapps | ||
rostests | ||
wallpaper |