summaryrefslogtreecommitdiff
path: root/com32/lib/syslinux/memscan.c
Commit message (Collapse)AuthorAgeFilesLines
* com32: replace hard-coded bounce buffer use in com32/libsyslinux-4.00-pre25H. Peter Anvin2010-02-241-2/+7
| | | | | | Replace hard-coded bounce buffer uses in com32/lib with lmalloc/lfree. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Run Nindent on com32/lib/syslinux/memscan.cH. Peter Anvin2009-05-291-94/+94
| | | | | | | | | Automatically reformat com32/lib/syslinux/memscan.c using Nindent. Do this for all files except HDT, gPXE and externally maintained libraries (zlib, tinyjpeg, libpng). Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Drop support for ACPI 3 E820 extended memory attributesH. Peter Anvin2009-05-211-9/+0
| | | | | | | | | | | | | | Drop all support for ACPI 3 E820 extended memory attributes. There are BIOSes in the field that report completely bogus information here, resulting in no memory at all being detected (we then fall back to E801 detection, but that is problematic in its own ways.) There is strong reasons to believe at this point that the extended memory attributes are not usable in their current form, so drop them and revert back to simple 20-byte support, including for MEMDISK spoofing. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memscan: use the contents of the ebda_seg, not the pointer itselfH. Peter Anvin2009-04-281-1/+1
| | | | | | Use the contents of the ebda_seg variable, not the address... Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memscan: correctly handle the DOS memory fallback caseH. Peter Anvin2009-04-271-4/+4
| | | | | | Actually (try to) handle the case of finding the DOS memory amount. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memscan: adjust lower limit; saner handling of insane DOS memory sizesH. Peter Anvin2009-04-041-9/+17
| | | | | | | | | | | Adjust the lower limit of DOS memory to 0x510; with the last known BIOS byte in use at 0x500 (and only then for Print Screen) this makes sense. If the DOS memory size is clearly insane, fall back to using the EBDA address. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* memscan: protect 0-0x7c00 until the new shuffler is mergedH. Peter Anvin2009-04-041-3/+3
| | | | | | | Mark the memory range 0-0x7c00 unavailable until the new shuffler code is ready, at which point we can go for a tighter bound. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* Update copyright notices; add Intel notices where appropriateH. Peter Anvin2009-04-041-0/+1
| | | | | | | Update copyright notices. Per agreement with my new employer, Intel Corporation, add Intel copyright notices where appropriate. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
* com32: add _t to scan_memory_callbackH. Peter Anvin2009-04-031-1/+1
| | | | | | Change scan_memory_callback to scan_memory_callback_t Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
* com32: merge all memory map discovery to one fileH. Peter Anvin2009-04-031-0/+153
Merge the memory map discovery for malloc and the memory map discovery for memmap into one file that scans memory and invokes a callback. Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>