[FREELDR]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 22 Sep 2011 16:38:54 +0000 (16:38 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Thu, 22 Sep 2011 16:38:54 +0000 (16:38 +0000)
commitb3562752620a82f135456409864d2f234974c9f1
tree069ae74e8df7170f32657c615a29da1d18ee69eb
parent1cdfe06ad1f3b37271a007da6c085f0d7358d91b
[FREELDR]
- Fix a bug, where the bios memory map could have a bogus entry: according to R.B.'s Interrupt list, in some bioses the function for enumerating the memory can return ebx != 0 for the last descriptor, and fail in the following call returning CF = 1. In that case we were previously counting that last descriptor as well, but its content wouldn't describe a valid memory region.
- Use a static buffer for the bios memory map, stored in the achitecture specific file and return a pointer to that variable from PcMemGetMemoryMap. Reuse the static map from DetectAcpiBios instead of enumerating again. On arm, we don't even need a buffer, we return the pointer from the arm block.

svn path=/trunk/; revision=53803
reactos/boot/freeldr/freeldr/arch/arm/macharm.c
reactos/boot/freeldr/freeldr/arch/i386/hwacpi.c
reactos/boot/freeldr/freeldr/arch/i386/pcmem.c
reactos/boot/freeldr/freeldr/arch/i386/xboxmem.c
reactos/boot/freeldr/freeldr/include/arch/i386/machxbox.h
reactos/boot/freeldr/freeldr/include/arch/pc/machpc.h
reactos/boot/freeldr/freeldr/include/machine.h
reactos/boot/freeldr/freeldr/mm/meminit.c