- Update FreeLDR PE Loading to actually use its Mm routines to allocate a buffer...
authorAlex Ionescu <aionescu@gmail.com>
Fri, 23 Feb 2007 19:48:25 +0000 (19:48 +0000)
committerAlex Ionescu <aionescu@gmail.com>
Fri, 23 Feb 2007 19:48:25 +0000 (19:48 +0000)
commit9969d07b681119c670b1dd244d18824943cf558a
tree3538527d5626e704aae762d9cda2102d42c7cc0a
parent8ccd7405b69940eae361fd83f47e20c68097fced
- Update FreeLDR PE Loading to actually use its Mm routines to allocate a buffer to read an image file into, then to allocate the actual load base and use the same code as in sysldr.c right now to PE-load the image into memory, then free the original read buffer. Not yet enabled for drivers!
- This means that:
  - 1) FreeLDR now keeps memory accounting information for the image files it loads, instead of us randomly writing to memory.
  - 2) We now skip sections marked as NO_LOAD. The kernel already re-mapped drivers doing this, but it didn't remap the kernel/hal, plus we still had to map the drivers once in FreeLDR, so we're saving a meg+ of kernel memory.

svn path=/trunk/; revision=25894
reactos/boot/freeldr/freeldr/arch/i386/loader.c
reactos/ntoskrnl/io/iomgr/driver.c
reactos/ntoskrnl/mm/sysldr.c